Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.78 KB

3-LinuxFileSystems.md

File metadata and controls

37 lines (34 loc) · 1.78 KB

Linux Filesystem

alt text

  • / - root directory
  • /usr - User programs
  • /var - Variable files
    • e.g. /var/log - Log files
  • /etc - Text Based Configuration files
    • e.g. /etc/passwd - User account information
  • /bin - Essential user command binaries
    • nowadays, /bin and /sbin are symbolic links to /usr/bin and /usr/sbin
  • /boot - Boot loader files
  • /dev - Device files
    • e.g. /etc/sda -> primary hard drive/disk
  • /home - Home directories
  • /lib & /lib64 - Shared libraries
    • lib and lib64 are symbolic links to /usr/lib and /usr/lib64
  • /media - Removable media
    • e.g. /media/cdrom - CD-ROM mount point
    • e.g. /media/usb - USB drive mount point
  • /mnt - Mount point for mounting filesystems
  • /opt - Add-on application software packages
  • /sbin - Essential system command binaries
  • /srv - Service data
  • /tmp - Temporary files
  • /proc - Kernel and process information
  • /root - Root user home directory
    • need to do sudo su to chnage user and access root user home directory
  • /sys - Kernel and system information
  • /usr/local - Local hierarchy for locally installed software

man hier

  • man hier will display the filesystem hierarchy standard.

Also read here: