Essential Linux Commands for Beginners
-------------------------------------
Welcome to Linux! Here’s a quick guide to essential terminal commands for
navigating and managing your system.
1. Navigation
- pwd: Print current directory (e.g., /home/user).
- ls: List files (add -l for details, -a for hidden files).
- cd [directory]: Change directory (e.g., cd Documents).
2. File Management
- touch [filename]: Create an empty file (e.g., touch note.txt).
- cp [source] [destination]: Copy files (e.g., cp file.txt backup/).
- mv [source] [destination]: Move/rename files (e.g., mv oldname.txt newname.txt).
- rm [filename]: Delete files (add -r for directories).
3. System Info
- df -h: Show disk usage in human-readable format.
- top: Display active processes (press q to quit).
- whoami: Show current user.
4. Permissions
- chmod [permissions] [file]: Change file permissions (e.g., chmod 755 script.sh).
- chown [user] [file]: Change file owner (e.g., chown user file.txt).
Pro Tip: Use man [command] (e.g., man ls) for detailed help. Practice in a safe
directory!
-------------------------------------
Happy Linux-ing!