GNU/Linux SYSTEM DIRECTORIES and their FILESYSTEMS
Executing $ ls /
lists the top level of the root filesystem tree. There appear directories like:
/dev, /etc, /proc, /sys, /var, /tmp and others.
In this article we are going to deal with directories that have special filesystems associated with them.
For a general view of the filesystem hierarchy we can visit the Filesystem Hierarchy Standard page.
FHS standard is a set of guidelines about where to place files and directories within UNIX based operating systems.
Check which filesystems are mounted
Two commands allow us to examine which filesystems and where are currently mounted in our system.
$ mount
or
$ cat /etc/mtab
Their response will be something like that:
/dev/sda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) /sys on /sys type sysfs (rw,noexec,nosuid,nodev) varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755) varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777) udev on /dev type tmpfs (rw,mode=0755) devshm on /dev/shm type tmpfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw) securityfs on /sys/kernel/security type securityfs (rw)
We are specially interested in
/proc, /sys, /var/run, /var/lock, /dev, /dev/shm, /dev/pts, /sys/kernel/security