Beginner · 5 min · practise every command in the built-in terminal

The Linux Filesystem

Linux organizes everything in a tree structure starting from / (called "root").

Key Directories

DirectoryPurpose
/Root — top of the tree
/homeUser home directories
/etcConfiguration files
/varVariable data (logs, databases)
/usrUser programs and libraries
/binEssential commands (ls, cp, mv...)
/tmpTemporary files
/devDevice files
/procProcess and system info

Your Home Directory

As user student, your home directory is /home/student. This is where you have full write access. The symbol ~ is a shortcut for your home directory.

Paths

  • Absolute path — starts from root: /home/student/documents
  • Relative path — relative to current location: documents/hello.txt

Practice tasks

  1. List the contents of the root directory /
  2. List the contents of /home
  3. List the contents of /etc
  4. Check your current working directory

Getting Started