Basic Linux Commands | Cheat Sheet

SudoSlayer

Golden Member
Joined
November 29, 2025
Messages
1,154
Reaction score
485
Points
83
  • Thread Author
  • #1
Command Description
ls List files and directories
cd Change directory
pwd Print working directory
mkdir Create a directory (folder)
rm Remove files and directories. Use 'rm -rf <directory>' to remove a folder with files inside
cp Copy files and directories
mv Move or rename files and directories. To rename, use 'mv <directory> <new_directory_name>'.
touch Create an empty file or update file timestamps
cat Concatenate and display file content
less View file content one page at a time
head Display the first lines of a file
tail Display the last lines of a file
grep Search for patterns in files
find Search for files and directories
tar Create or extract compressed archives
chmod Change file permissions
chown Change file ownership
chgrp Change group ownership
man Display the manual pages for a command
ssh Securely connect to a remote server
scp Securely copy files between local and remote systems
sudo Execute a command with root privileges
df Display disk space usage
du Estimate file and directory sizes
top Monitor system processes
ps Display running processes
kill Terminate processes
ifconfig Configure network interfaces
ping Test network connectivity to a host
wget Download files from the web
curl Transfer data from or to a server
history View command history
clear Clear the terminal screen
 
  • Tags
    basic cheat cheat sheet commands linux