Comprehensive Command Line mastery for Unix-based systems.
Cmd + Space, type "Terminal," and press Enter.Ctrl + Alt + T or search for "Terminal."username@hostname ~ %
~ - Current directory (tilde means home directory).% or $ - Ready for command.| Goal | Command | Example |
|---|---|---|
| Print Dir | pwd | pwd |
| List Files | ls | ls -la |
| Change Dir | cd | cd Documents |
| Create Dir | mkdir | mkdir my_project |
| Create File | touch | touch index.html |
| Copy | cp | cp file.txt backup/ |
| Move/Rename | mv | mv old.txt new.txt |
Pro Tip: Use the Tab key for auto-completion!
cat filename.txtless filename.txtnano filename.txtvim filename.txt (Esc + :wq to save)sudo before your command (e.g., sudo apt update).chmod +x script.sh.Ctrl + C.