🐧 Linux Command Cheat Sheet

File & Directory Operations

ls
List directory contents
cd
Change directory
pwd
Print working directory
mkdir
Create new directory
rm
Remove files or directories
cp
Copy files or directories
mv
Move or rename files
touch
Create empty file

File Viewing & Editing

cat
Display file contents
less
View file page by page
head
Show first lines of file
tail
Show last lines of file
nano
Simple text editor
grep
Search text in files

System Information

top
Display system processes
df
Show disk space usage
free
Display memory usage
uname
System information

Permissions & Ownership

chmod
Change file permissions
chown
Change file owner
sudo
Execute as superuser