πŸ“œ Linux Commands Cheat Sheet – From Beginner to Pro

This cheat sheet covers the essential Linux commands every IT professional should know. Whether you're preparing for a sysadmin job, studying for a certification, or managing your own VPS, these commands are your daily toolkit. Bookmark this page and practice on a real server – we've included free VPS credits below.

1. File & Directory Basics

CommandDescription
pwdPrint current working directory
ls -laList all files (including hidden) with details
cd /pathChange directory to /path
mkdir newdirCreate a new directory
touch file.txtCreate an empty file
cp source destCopy file or directory (use -r for recursive)
mv oldname newnameMove or rename a file
rm fileDelete a file (use -rf for directories with caution)
cat fileDisplay file contents
less fileView file page by page (q to quit)

2. Permissions & Ownership

CommandDescription
chmod 755 fileSet permissions (rwx for owner, rx for group/others)
chmod +x script.shMake a script executable
chown user:group fileChange file owner and group
ls -lView permissions in list format

3. System Information & Management

CommandDescription
uname -aShow system and kernel info
df -hDisk usage of file systems (human‑readable)
free -mMemory usage (MB)
topTask manager (CPU/RAM usage, running processes)
ps auxList all running processes
kill PIDKill process by ID
systemctl status serviceCheck status of a systemd service (e.g., nginx)
journalctl -xeView recent system logs

4. Networking

CommandDescription
ip addrShow IP addresses
ping hostCheck connectivity to host
curl urlTransfer data from/to a server (HTTP requests)
wget urlDownload files from the internet
ss -tulpnList listening ports
ufw allow 22Allow SSH through firewall (Ubuntu)

5. Package Management (Ubuntu/Debian)

CommandDescription
sudo apt updateRefresh package lists
sudo apt upgradeUpgrade all installed packages
sudo apt install pkgInstall a package
sudo apt remove pkgUninstall a package
dpkg -lList all installed packages

6. Text Processing & Searching

CommandDescription
grep "text" fileSearch for text inside a file
find / -name "file.txt"Find a file by name
wc -l fileCount lines in a file
sort fileSort lines alphabetically
uniqRemove duplicate lines (often used with sort)
sed 's/old/new/g' fileReplace text in a file

🐧 Practice These Commands on a Real Server

Get $200 free credit on DigitalOcean, or free trials on Vultr/Linode. Deploy a Linux VPS in minutes and master the command line.

Claim $200 Credit β†’   Try Vultr β†’

Next Steps for Your IT Career

Memorising commands is just the start. To turn Linux into a career:

Questions? Reach out – I'm happy to help.