File and Directory Navigation¶
Essential commands for navigating the Linux filesystem.
Basic Navigation¶
Command |
Description |
Examples |
|---|---|---|
|
Print current working directory |
|
|
List directory contents |
|
|
Change directory |
|
Common Patterns¶
pwd # Where am I?
ls -lh # What's here? (long, human-readable)
cd /path/to/dir # Go somewhere
cd .. # Go up one level
cd ~ # Go home
ls -la # List all (including hidden files)
Tips¶
Use Tab to auto-complete file and directory names
Press Tab twice to see all available options
cdwithout arguments takes you to your home directorycd -switches to the previous directory you were in