Common Terminal Commands ๐Ÿš€

Common Terminal Commands ๐Ÿš€
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