Meaning of directories on Unix and Unix like systems

For more data on the layout of Linux file-systems, look at the Filesystem Hierarchy Standard (now at version 2.3, with the beta 3.0 version deployed on most recent distros). It does explain some of where the names came from: /bin – Binaries. /boot – Files required for booting. /dev – Device files. /etc – Et … Read more

Force dig to resolve without using cache

You can use the @ syntax to look up the domain from a particular server. If the DNS server is authoritative for that domain, the response will not be a cached result. dig @ns1.example.com example.com You can find the authoritative servers by asking for the NS records for a domain: dig example.com NS

How do I find the UUID of a filesystem

Another command that might be available and also works quite well for this is ‘blkid’. It’s part of the e2fsprogs package. Examples of it’s usage: Look up data on /dev/sda1: topher@crucible:~$ sudo blkid /dev/sda1 /dev/sda1: UUID=”727cac18-044b-4504-87f1-a5aefa774bda” TYPE=”ext3″ Show UUID data for all partitions: topher@crucible:~$ sudo blkid /dev/sda1: UUID=”727cac18-044b-4504-87f1-a5aefa774bda” TYPE=”ext3″ /dev/sdb: UUID=”467c4aa9-963d-4467-8cd0-d58caaacaff4″ TYPE=”ext3″ Show UUID data … Read more

Keeping a linux process running after I logout

The best method is to start the process in a terminal multiplexer. Alternatively you can make the process not receive the HUP signal. A terminal multiplexer provides “virtual” terminals which run independent from the “real” terminal (actually all terminals today are “virtual” but that is another topic for another day). The virtual terminal will keep … Read more

What version of RHEL am I using?

You can use the lsb_release command on various Linux distributions: lsb_release -i -r This will tell you the Distribution and Version and is a little bit more accurate than accessing files that may or may not have been modified by the admin or a software package. As well as working across multiple distros. For RHEL, … Read more

Filename length limits on linux?

See the Wikipedia page about file systems comparison, especially in column Maximum filename length. Here are some filename length limits in popular file systems: BTRFS 255 bytes exFAT 255 UTF-16 characters ext2 255 bytes ext3 255 bytes ext3cow 255 bytes ext4 255 bytes FAT32 8.3 (255 UCS-2 code units with VFAT LFNs) NTFS 255 characters … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)