Basic Linux Commands
1. pwd – Print Working Directory
What it does: Shows the full path of your current directory.
Example Output:
2. ls – List Directory Contents
What it does: Lists files and folders in the current directory.
Variants:
-
ls -l– long format (detailed) -
ls -a– shows hidden files -
ls -lh– human-readable sizes
Example:
3. cd – Change Directory
What it does: Navigate to a different directory.
Examples:
4. mkdir – Make Directory
What it does: Creates a new folder.
5. touch – Create an Empty File
What it does: Creates a new, empty file.
You can also create multiple:
6. rm – Remove Files or Folders
What it does: Deletes files or directories.
⚠️ Be careful with this one!
7. cp – Copy Files or Folders
8. mv – Move or Rename Files
9. cat – View File Contents
To create and write a file:
10. nano or vim – Edit Files
11. clear – Clear the Terminal
Shortcut: Ctrl + L
12. history – Show Command History
You can re-run a command:
13. man – Manual (Help) for a Command
To quit the manual: press q.
14. df -h – Show Disk Space Usage
-h means human-readable (MB, GB, etc.)
15. top – Show Running Processes (Live Monitor)
Press q to exit.
Bonus: Combine Commands
You can chain commands with &&:
Would you like this turned into a cheat sheet PDF, or should I explain more advanced commands like permissions (chmod), searching (grep), or networking tools?

