Linux Cheat Sheet

Essential Linux commands for system administration, file management, and networking. Complete reference guide with copy-paste ready commands.

File Operations

ls -la

List files with details

cd <directory>

Change directory

pwd

Print working directory

cp <src> <dest>

Copy files

mv <src> <dest>

Move or rename files

rm -rf <path>

Remove files/directories

mkdir -p <path>

Create nested directories

System Info

top

Display running processes

df -h

Show disk usage

free -h

Display memory usage

uname -a

Show system information

ps aux

List all processes

Networking

curl <url>

Make HTTP request

netstat -tuln

Show listening ports

ping <host>

Test network connectivity

ssh user@host

SSH into remote server

scp <file> user@host:<path>

Secure copy to remote