root@cheat
umount
Unmount a filesystem. Safely detaches a storage device from the directory tree before removal.
mount
Mount a filesystem or show currently mounted filesystems. Attaches storage devices to the directory tree.
free -h
Display memory usage in human-readable format. Shows RAM and swap usage statistics.
journalctl -xe
View systemd journal logs with extended info. -x adds explanatory help text, -e jumps to the end.
systemctl restart
Restart a systemd service. Stops and then starts the service, applying any configuration changes.
systemctl status
Check the status of a systemd service. Shows if the service is running and recent log entries.
tar -xzvf
Extract a compressed gzip archive. Decompresses and extracts files from a tar.gz file.
tar -czvf
Create a compressed gzip archive. Combines multiple files/folders into a single compressed file.
wget
Download files from the web. Supports recursive downloads, resume capability, and background operation.
curl
Transfer data from or to a server. Supports HTTP, HTTPS, FTP, and many other protocols.
ping
Send ICMP echo requests to test network connectivity. -c flag limits the number of packets.
ip route
Display and manipulate the IP routing table. Shows how network traffic is routed.
ip a
Show all network interfaces and their IP addresses. Modern replacement for ifconfig command.
uname -a
Print detailed system information including kernel name, version, hostname, and architecture.
id
Display user and group IDs. Shows UID, GID, and all group memberships for the current or specified user.
whoami
Print the current username. Shows which user account is currently active in the terminal.
uptime
Show how long the system has been running, number of users logged in, and system load averages.
kill -9
Forcefully terminate a process by its PID. Signal 9 (SIGKILL) cannot be caught or ignored.
htop
Enhanced interactive process viewer with color display and mouse support. More user-friendly than top.
top
Interactive real-time process viewer. Shows system summary and list of processes updated continuously.
ps aux
Display all running processes with detailed information including CPU and memory usage.
tail -f
Display the last lines of a file and follow new additions. -f flag follows the file in real-time.
head
Display the first lines of a file. Default shows first 10 lines, -n specifies number of lines.
less
View file contents page by page. Allows scrolling through large files with keyboard navigation.
cat
Display file contents. Concatenate and display files to standard output.
touch
Create an empty file or update file timestamps. If the file exists, updates its modification time.
rmdir
Remove empty directories. Only works on directories that contain no files.
mkdir -p
Create directories including parent directories. The -p flag creates parent directories as needed.
mv
Move or rename files and directories. Can move files between directories or rename them.
cp -r
Copy files or directories recursively. The -r flag copies directories and their contents.
cd
Change the current directory. Navigate to different folders in the file system.
pwd
Print the current working directory path. Shows the full path of where you are in the file system.
apt
Install packages on Debian/Ubuntu systems
sudo
Execute a command with superuser privileges
rm -rf
Forcefully remove files and directories recursively. USE WITH EXTREME CAUTION!
du
Show disk usage of each file/folder in current directory
df
Display disk space usage in human-readable format
chmod
Change file permissions. 755 gives owner full access, others read/execute
find
Find files by name in a directory tree
grep
Search for text patterns recursively in files
ls
List all files including hidden ones with detailed information