🐧 Linux Command Cheat Sheet
File & Directory Operations
ls
Copy
i
List directory contents
cd
Copy
i
Change directory
pwd
Copy
i
Print working directory
mkdir
Copy
i
Create new directory
rm
Copy
i
Remove files or directories
cp
Copy
i
Copy files or directories
mv
Copy
i
Move or rename files
touch
Copy
i
Create empty file
File Viewing & Editing
cat
Copy
i
Display file contents
less
Copy
i
View file page by page
head
Copy
i
Show first lines of file
tail
Copy
i
Show last lines of file
nano
Copy
i
Simple text editor
grep
Copy
i
Search text in files
System Information
top
Copy
i
Display system processes
df
Copy
i
Show disk space usage
free
Copy
i
Display memory usage
uname
Copy
i
System information
Permissions & Ownership
chmod
Copy
i
Change file permissions
chown
Copy
i
Change file owner
sudo
Copy
i
Execute as superuser
×