Whether you're using a full Linux installation, WSL, or managing remote servers over SSH, knowing a handful of terminal commands can make your workflow much faster.
These are some of the commands I use regularly.
1. Check Your Current Directory
pwd
Prints the absolute path of your current working directory.
Example:
/home/ghost/projects/portfolio
2. List Files
ls
Useful options:
ls -l
Shows detailed information.
ls -la
Shows hidden files as well.
3. Change Directory
cd Documents
Go back one directory:
cd ..
Go to your home directory:
cd ~
4. Create Files and Folders
Create a folder:
mkdir projects
Create a file:
touch notes.txt
5. Copy Files
cp file.txt backup.txt
Copy an entire directory:
cp -r portfolio backup
6. Move or Rename Files
Rename a file:
mv old.txt new.txt
Move a file:
mv notes.txt Documents/
7. Remove Files
Delete a file:
rm file.txt
Delete a folder:
rm -r folder
⚠️ Be careful with:
rm -rf
This permanently deletes files without asking for confirmation.
8. Find Files
find . -name "*.tsx"
Searches for every .tsx file in the current directory and its subdirectories.
9. Search Inside Files
grep "Next.js" README.md
Useful for finding specific text inside files.
Recursive search:
grep -R "TODO" .
10. Monitor Running Processes
top
Or the more modern alternative:
htop
Install htop on Ubuntu:
sudo apt install htop
11. Check Disk Usage
df -h
Shows available disk space in a human-readable format.
12. Check Folder Size
du -sh .
Useful when trying to locate large directories.
13. Download Files
wget https://example.com/file.zip
Or:
curl -O https://example.com/file.zip
14. SSH Into Another Machine
ssh username@192.168.1.10
One of the most common commands for server administration.
15. Update Ubuntu
sudo apt update
sudo apt upgrade
Keeps your packages up to date.
Final Thoughts
Learning Linux doesn't happen overnight.
Instead of memorizing hundreds of commands, focus on the ones you use every day. Over time they'll become second nature and dramatically improve your productivity.
If you're just getting started, WSL is a great way to learn Linux without leaving Windows.