Lab 02: Filesystem Hierarchy (FHS)
Objective
Step 1: The Root of Everything
ls /bin boot dev etc home lib lib32 lib64 libx32
media mnt opt proc root run sbin srv sys tmp usr varStep 2: Explore the Root with Details
ls -la /total 56
drwxr-xr-x 1 root root 4096 Mar 5 00:53 .
drwxr-xr-x 1 root root 4096 Mar 5 00:53 ..
-rwxr-xr-x 1 root root 0 Mar 5 00:53 .dockerenv
lrwxrwxrwx 1 root root 7 Feb 10 14:04 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 18 2022 boot
drwxr-xr-x 5 root root 340 Mar 5 00:53 dev
drwxr-xr-x 1 root root 4096 Mar 5 00:53 etc
drwxr-xr-x 2 root root 4096 Apr 18 2022 home
lrwxrwxrwx 1 root root 7 Feb 10 14:04 lib -> usr/lib
drwxr-xr-x 2 root root 4096 Feb 10 14:05 media
drwxr-xr-x 2 root root 4096 Feb 10 14:05 mnt
drwxr-xr-x 2 root root 4096 Feb 10 14:05 opt
dr-xr-xr-x 593 root root 0 Mar 5 00:53 proc
drwx------ 2 root root 4096 Feb 10 14:12 root
drwxr-xr-x 5 root root 4096 Feb 10 14:12 run
lrwxrwxrwx 1 root root 8 Feb 10 14:04 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 Feb 10 14:05 srv
dr-xr-xr-x 13 root root 0 Mar 1 20:13 sys
drwxrwxrwt 2 root root 4096 Feb 10 14:12 tmp
drwxr-xr-x 14 root root 4096 Feb 10 14:05 usr
drwxr-xr-x 11 root root 4096 Feb 10 14:12 varStep 3: The Essential Directories
Step 4: The /proc Virtual Filesystem
Step 5: The /etc Directory (System Configuration)
Step 6: The /var Directory (Variable Data)
Step 7: The /tmp Directory
Step 8: Capstone — FHS Reference Card
Summary
Directory
Purpose
Grows?
Last updated
