Root Directory (/)
The top-most directory in the Linux filesystem
● Every file and directory originates from / ● Paths that start with / are absolute paths
Root Example
○ /usr/local/bin → This means
■ Start at / (root) ■ Go into the usr directory ■ Then into local ■ Then into bin
Home Directory (~)
● A shortcut to the logged-in user’s personal home directory
● Each user has a unique home directory inside /home/
Home Directory Example
If the user is sam
■ ~ = /home/sam ■ cd ~ takes sam to /home/sam
Home shortcut usage
○ ~/Documents → The user’s Documents folder
○ ~/scripts/myscript.sh → The myscript.sh file inside scripts