06-Mounting and Unmounting Filesystems
06-Mounting and Unmounting Filesystems
Relative path:
◦ curs/fis1
◦ ../curs/fis1
◦ Relative to the current working directory
◦ Shorter, easier to write
◦ The path to the same file depends on where we are at
the moment
Directory Description
/ Primary hierarchy root and root directory of the entire file system hierarchy.
/bin/ Essential command binaries that need to be available in single user mode; for all users, e.g., cat, ls, cp.
/boot/ Boot loader files, e.g., kernels, initrd; often a separate partition
/dev/ Essential devices, e.g., /dev/null.
/etc/ Host-specific system-wide configuration files
/home/ Users' home directories, containing saved files, personal settings, etc.; normally a separate partition.
/lib/ Libraries essential for the binaries in /bin/ and /sbin/.
/media/ Mount points for removable media such as CD-ROMs (appeared in FHS-2.3).
/mnt/ Temporarily mounted filesystems.
/opt/ Optional application software packages
/proc/ Virtual filesystem documenting kernel and process status as text files, e.g., uptime, network. In Linux,
corresponds to a Procfs mount.
/root/ Home directory for the root user.
/sbin/ Essential system binaries, e.g., init, ip, mount.
/srv/ Site-specific data which is served by the system.
/tmp/ Temporary files (see also /var/tmp). Often not preserved between system reboots.
/usr/ Secondary hierarchy for read-only user data; contains the majority of (multi-)user utilities and
applications.
/var/ Variable files—files whose content is expected to continually change during normal operation of the
system—such as logs, spool files, and temporary e-mail files. Sometimes a separate partition.
Linux directory hierarchy is usually made up of
multiple partition/devices joined under the same
root