These are essential terminal commands every developer should know when working in the terminal or command line interface (CLI):
๐ Basic Navigation:
- `pwd`: Print Working Directory (shows your current location in the file system)
- `cd`: Change Directory
- `ls`: List Files in the current directory
- `~/`: Shortcut for the Home Directory
๐ ๏ธ Directory Management:
- `mkdir`: Create a new directory
- `rmdir`: Remove an empty directory
- `cd ..`: Move up one directory level
๐ File Management:
- `touch`: Create a new file
- `cp`: Copy a file or directory
- `mv`: Move or rename files and directories
๐ Superuser Privileges:
- `sudo`: Execute commands with superuser (administrator) privileges
๐ Viewing & Editing:
- `man`: Manual pages, provides help info for commands
- `nano` & `vi`: Text editors you can use directly in the terminal
๐งน Miscellaneous:
- `clear`: Clears the terminal screen for a fresh start
- `ll`: Similar to `ls`, lists files in a more detailed format
๐ก Pro Tip: Use `man [command]` to learn more about any command and its options!
Published: Aug 2024
โ Back to Blog