Quick Reference Guide
Last updated
pwd # Show current directory
ls # List files
ls -la # List all files with details
cd /path/to/dir # Change directory
cd .. # Go up one level
cd ~ # Go to home directorytouch file.txt # Create empty file
mkdir folder # Create directory
cp source dest # Copy file
mv old new # Move or rename
rm file.txt # Delete file
rm -rf folder/ # Delete directory
cat file.txt # Display file contentsgrep "text" file # Search in file
grep -r "text" . # Search recursively
find . -name "*.js" # Find files by namedf -h # Disk space usage
free -m # Memory usage
htop # Process monitor
whoami # Current user
uname -a # System informationsudo apt update # Update package lists
sudo apt install pkg # Install package
sudo apt remove pkg # Remove packagegit clone url # Clone repository
git status # Check status
git add . # Stage changes
git commit -m "msg" # Commit
git push # Push to remote
git pull # Pull from remote