Linux-Essential-Commands-Cheat-Sheet
Linux-Essential-Commands-Cheat-Sheet
Commands (Cheat
Sheet)
By : Tech Fusionist
Process Management
Networking
Package Management
System Administration
Miscellaneous Utilities
Miscellaneous Utilities
Follow me on the below platforms to learn with quick content & get updates for new resources. Twitter (X) :&
File and Directory Management
1 ls -l 2 ls -la 3 cd /path/to/dir
Lists directory contents in long Lists all files (including hidden) Changes the current directory to
format (permissions, owner, in long format. the specified path.
size, etc.).
1 uname -a 2 df -h
Displays all system information (kernel, hostname, Shows disk space usage in human-readable format.
etc.).
5 htop 6 free -h
A more user-friendly version of top (if installed). Shows memory usage in human-readable format.
7 whoami 8 uptime
Prints the current user's username. Shows how long the system has been running.
9 lscpu 10 lsblk
Displays CPU information. Lists block devices (e.g., disks and partitions).
Process Management
7 tee file_name
Writes command output to both a file and the screen.
User and Permission Management
1 echo "text" > file_name 2 echo "text" >> file_name 3 which command_name
Writes text to a file, overwriting Appends text to a file. Shows the full path of a
it. command.
7 watch -n 5 "date"
Runs date every 5 seconds (similar to previous watch, but different use case).
Networking and Diagnostics
5 w 6 arp -a
Shows who is logged in and what they're doing. Displays the ARP cache (IP-to-MAC mappings).
7 route 8 iptables -L
Shows the kernel routing table. Lists current firewall rules (requires root).
Security and Auditing
7 sha256sum file_name
Computes the SHA-256 checksum of a file.
System and Hardware Tools
7 ulimit -n 1024
Sets the maximum number of open files to 1024.
Process and Resource Management
1 clear 2 reset
Clears the terminal screen. Resets the terminal to default settings (useful if
corrupted).
Telegram: https://t.me/LearnDevOpsForFree
Youtube: https://www.youtube.com/@T3Ptech