Linux Commands Cheatsheet - Complete Command Reference Guide 2025
Master Linux with our comprehensive command reference. Search, learn, and use over 500+ Linux commands with examples and syntax guides.
Advertisement
Ad blocked by browser
File Operations
lsList directory contents
ls [options] [directory]cdChange directory
cd [directory]cpCopy files and directories
cp [options] source destinationmvMove/rename files and directories
mv [options] source destinationrmRemove files or directories
rm [options] file(s)mkdirMake directories
mkdir [options] directorychmodChange file permissions
chmod [options] mode file(s)chownChange file owner and group
chown [options] owner[:group] file(s)lnCreate links between files
ln [options] target link_namefindSearch for files in directory hierarchy
find [path] [expression]touchCreate empty files or update timestamps
touch [options] file(s)statDisplay file status information
stat [options] file(s)mountMount filesystems
mount [options] [device] [directory]Text Processing
catConcatenate and display files
cat [options] file(s)grepSearch text using patterns
grep [options] pattern [file(s)]sedStream editor for filtering and transforming text
sed [options] 'command' [file(s)]awkPattern scanning and text processing
awk [options] 'program' [file(s)]sortSort lines of text files
sort [options] [file(s)]cutRemove sections from lines of files
cut [options] [file]trTranslate or delete characters
tr [options] set1 set2wcCount lines, words, and bytes
wc [options] [file(s)]Process Management
psReport process status
ps [options]topDisplay system processes
top [options]killTerminate processes
kill [options] pid(s)niceRun program with modified scheduling priority
nice [option] commandnohupRun command immune to hangups
nohup command [args]Network Operations
pingSend ICMP ECHO_REQUEST to network hosts
ping [options] destinationsshOpenSSH SSH client
ssh [options] [user@]hostname [command]scpSecure copy (remote file copy program)
scp [options] source destinationnetstatNetwork statistics
netstat [options]curlTransfer data from or to a server
curl [options] urlwgetNon-interactive network downloader
wget [options] urldigDNS lookup utility
dig [@server] [name] [type]traceroutePrint network path to host
traceroute [options] hostSystem Administration
systemctlControl the systemd system and service manager
systemctl [options] command [name]journalctlQuery the systemd journal
journalctl [options]useraddCreate a new user
useradd [options] usernamecrontabSchedule periodic jobs
crontab [options] [file]passwdChange user password
passwd [options] [username]Package Management
aptAdvanced Package Tool (Debian/Ubuntu)
apt [options] commandyumYellowdog Updater Modified (RHEL/CentOS)
yum [options] commanddpkgDebian Package Management System
dpkg [options] actionDisk Operations
dfReport file system disk space usage
df [options]duEstimate file space usage
du [options] [file(s)]fdiskManipulate disk partition table
fdisk [options] devicelsblkList block devices
lsblk [options]mkfsCreate filesystem
mkfs [options] deviceSecurity & Permissions
sudoExecute command as another user
sudo [options] commandopensslOpenSSL command line tool
openssl command [options]fail2banBan hosts that cause multiple authentication errors
fail2ban-client [options] commandufwUncomplicated Firewall
ufw [options] commandgetenforceSELinux enforcement status
getenforceContainer Operations
dockerDocker container operations
docker [options] commandpodmanPod Manager tool
podman [options] commandSystem Monitoring
htopInteractive process viewer
htop [options]iotopSimple top-like I/O monitor
iotop [options]vmstatReport virtual memory statistics
vmstat [options] [delay [count]]lsofList open files
lsof [options]freeDisplay memory usage
free [options]Backup & Recovery
rsyncFast, versatile file copying tool
rsync [options] source destinationtarTape archiving utility
tar [options] [archive] [file(s)]ddConvert and copy a file
dd [operands]System Boot
grub2-mkconfigGenerate GRUB configuration
grub2-mkconfig [options]systemd-analyzeAnalyze system boot-up performance
systemd-analyze [options] commandMedia Processing
ffmpegMultimedia framework for handling video/audio
ffmpeg [options] input outputimagemagickImage manipulation tools
convert [options] input outputVersion Control
gitDistributed version control system
git [options] commandsvnSubversion version control
svn [options] commandPerformance Analysis
straceTrace system calls and signals
strace [options] commandperfPerformance analysis tools
perf [options] commandDatabase Management
mysqlMySQL database client
mysql [options] [database]postgresqlPostgreSQL database management
psql [options] [dbname]Virtualization
virshManage virtual machines
virsh [options] command domainvirt-installProvision new virtual machines
virt-install [options]Log Analysis
logrotateRotate and compress log files
logrotate [options] configgoaccessReal-time web log analyzer
goaccess [options] log_fileService Discovery
consulService networking platform
consul [command]eurekaService registry
eureka [options]Networking Advanced
tcpdumpNetwork packet analyzer
tcpdump [options] [expression]iptablesAdministration tool for IPv4 packet filtering
iptables [options] command chain ruleipNetwork configuration tool
ip [options] object commandnftablesModern packet filtering
nft [options]Load Balancing
haproxyHigh availability load balancer
haproxy [options]nginxHTTP and reverse proxy server
nginx [options]Archive & Compression
zipPackage and compress files
zip [options] archive filesgzipCompress or expand files
gzip [options] file(s)7z7-Zip file archiver
7z [options] command archive filesHardware Information
lscpuDisplay CPU information
lscpu [options]lsusbList USB devices
lsusb [options]dmidecodeDMI table decoder
dmidecode [options]Scheduling & Jobs
cronSchedule periodic tasks
crontab [options]atExecute commands at specified time
at [options] timePerformance Tuning
sysctlConfigure kernel parameters
sysctl [options] [variable[=value]]niceRun with modified scheduling priority
nice [options] commandUser Environment
envDisplay environment variables
env [options] [name=value] [command]localeGet locale-specific information
locale [options]Authentication & Access
pamPluggable Authentication Modules
pam [module] [type] [control] [arguments]authAuthentication key management
auth [options] commandSSL/TLS Management
certbotAutomated SSL/TLS certificate management
certbot [options] commandkeytoolKey and certificate management tool
keytool [options]File System Management
mkfsBuild a Linux filesystem
mkfs [options] devicetune2fsAdjust tunable filesystem parameters
tune2fs [options] devicelvmLogical Volume Management
lvm [command]SELinux Management
semanageSELinux policy management tool
semanage [options] commandsestatusSELinux status tool
sestatus [options]Network Diagnostics
mtrNetwork diagnostic tool
mtr [options] hostdigDNS lookup utility
dig [options] name typeContainer Orchestration
kubectlKubernetes command-line tool
kubectl [command] [type] [name] [flags]helmKubernetes package manager
helm [command] [chart]System Audit
auditdLinux Audit daemon
auditd [options]acctProcess accounting
acct [options]Cloud Tools
awsAWS Command Line Interface
aws [options] commandgcloudGoogle Cloud Platform CLI
gcloud [group] [command]azAzure Command Line Interface
az [group] [command]Debugging Tools
gdbGNU Debugger
gdb [options] [program]valgrindMemory debugging tool
valgrind [options] programService Management
supervisordProcess control system
supervisord [options]pm2Process Manager for Node.js
pm2 [options] commandStorage Management
cephDistributed storage system
ceph [options] commandglusterScale-out filesystem
gluster [command]Certificate Management
opensslOpenSSL certificate toolkit
openssl command [options]DNS Management
nslookupQuery DNS servers
nslookup [options] name [server]hostDNS lookup utility
host [options] name [server]Mail & Messaging
postfixMail server configuration
postfix [options] commandmuttText-based mail client
mutt [options]Time Management
timedatectlControl system time and date
timedatectl [options] commandchronydNTP client/server
chronyd [options]Code Analysis
splintC program verifier
splint [options] filesclang-tidyC/C++ linter
clang-tidy [options] filesBuild Tools
makeBuild automation tool
make [options] [target]cmakeCross-platform build system
cmake [options] source-dirSecurity Scanning
nmapNetwork security scanner
nmap [options] targetniktoWeb server scanner
nikto [options] -h targetRemote Management
ansibleIT automation system
ansible [options] patternsaltConfiguration management
salt [options] target commandMemory Management
vmstatVirtual memory statistics
vmstat [options] [delay [count]]swaponSwap space management
swapon [options] [device]Kernel Management
modprobeAdd/remove kernel modules
modprobe [options] modulesysctlKernel parameter management
sysctl [options] [parameter]High Availability
pacemakerCluster resource manager
pcs [options] commandcorosyncCluster engine
corosync [options]Monitoring & Metrics
prometheusMonitoring system
prometheus [flags]collectdSystem statistics collection
collectd [options]Network Tunneling
wireguardVPN tunnel configuration
wg [options] commandopenvpnVPN tunnel daemon
openvpn [options] [config]Identity Management
freeipaIdentity management system
ipa [command]sssdSystem Security Services Daemon
sssd [options]Load Testing
abApache HTTP server benchmarking
ab [options] URLsiegeHTTP load testing
siege [options] [url]Configuration Management
puppetInfrastructure automation
puppet [options] actionchefConfiguration management
chef [options] commandContainer Runtime
containerdContainer runtime
ctr [options] commandcri-oKubernetes container runtime
crictl [options] commandDatabase Optimization
mysqltunerMySQL performance advisor
mysqltuner [options]pgbenchPostgreSQL benchmark tool
pgbench [options] [dbname]Message Queues
rabbitmqctlRabbitMQ management tool
rabbitmqctl [options] commandkafkaApache Kafka management
kafka-topics [options]Search & Indexing
elasticsearchElasticsearch operations
curl [options] endpointsolrApache Solr management
solr [command]Machine Learning Tools
condaPackage management for ML
conda [options] commandjupyterInteractive computing
jupyter [options] commandNetwork QoS
tcTraffic control
tc [options] commandwondershaperTraffic shaping tool
wondershaper [options] interfaceStorage Replication
drbdDistributed storage replication
drbdadm [options] commandrsnapshotFilesystem snapshot utility
rsnapshot [options] commandAPI Management
kongAPI Gateway management
kong [options] commandswaggerAPI documentation tool
swagger [command]Backup Verification
baculaBackup verification system
bconsole [options]resticBackup program verification
restic [options] commandSystem Recovery
systemrescueSystem rescue toolkit
sysresccd [options]fsckFilesystem check
fsck [options] deviceCompliance Tools
openscapSecurity compliance checker
oscap [module] commandlynisSecurity auditing tool
lynis [options] commandNetwork Automation
ansibleNetwork automation platform
ansible-network [options]nornirNetwork automation framework
nornir [options]Storage Encryption
cryptsetupDisk encryption tool
cryptsetup [options] commandveracryptDisk encryption utility
veracrypt [options]Service Mesh
istioService mesh platform
istioctl [command]linkerdUltralight service mesh
linkerd [command]Log Management
logstashLog processing pipeline
logstash [options]fluentdData collector
fluentd [options]Infrastructure Testing
terraformInfrastructure testing
terraform [command]inspecInfrastructure spec testing
inspec [command]Cloud Native Tools
helmKubernetes package manager
helm [command]argocdGitOps continuous delivery
argocd [command]Access Control
keycloakIdentity and access management
kcadm.sh [command]autheliaAuthentication server
authelia [command]Performance Profiling
perfPerformance analysis tool
perf [command]flameFlamegraph generator
flamegraph.pl [options]Distributed Systems
zookeeperDistributed coordination
zkCli.sh [options]etcdKey-value store
etcdctl [command]Monitoring Tools
grafanaMetrics visualization
grafana-cli [command]prometheusMetrics collection
promtool [command]GitOps Tools
fluxGitOps toolkit
flux [command]jenkinsxCloud native CI/CD
jx [command]Serverless Tools
serverlessServerless framework
serverless [options]openfaasFunctions as a service
faas-cli [command]Network Security
snortNetwork intrusion detection
snort [options]suricataNetwork security monitor
suricata [options]Application Performance
arthasJava diagnostics tool
arthas [command]jmeterLoad testing tool
jmeter [options]Container Security
trivyContainer vulnerability scanner
trivy [options] targetfalcoRuntime security
falco [options]Infrastructure Automation
terraformInfrastructure as code
terraform [command]pulumiModern infrastructure as code
pulumi [command]Site Reliability
chaos-meshChaos engineering platform
chaos-mesh [command]litmusChaos engineering toolkit
litmusctl [command]Data Pipeline Tools
airflowWorkflow orchestration
airflow [command]nifiData flow automation
nifi [command]Edge Computing
k3sLightweight Kubernetes
k3s [command]edgexEdge computing framework
edgex [command]Observability Tools
jaegerDistributed tracing
jaeger [command]datadogMonitoring and analytics
datadog-agent [command]Pipeline Security
snykSecurity scanning
snyk [command]anchoreContainer security
anchore-cli [command]Low-Level System Tools
straceSystem call tracer
strace [options] commandltraceLibrary call tracer
ltrace [options] commandsysdigSystem exploration and troubleshooting
sysdig [options]High Availability Tools
heartbeatNode availability monitoring
heartbeat [options]keepalivedLoad balancing and high-availability
keepalived [options]Caching Systems
redis-cliRedis command line interface
redis-cli [options] [command]memcachedMemory caching system
memcached [options]Event Streaming
kafkaDistributed streaming platform
kafka-topics.sh [options]rabbitmqMessage broker
rabbitmqctl [command]AI/ML Operations
kubeflowMachine learning toolkit for Kubernetes
kfctl [command]mlflowMachine learning lifecycle platform
mlflow [command]Database Replication
pgpoolPostgreSQL connection pooling/replication
pgpool [options]galeraMySQL/MariaDB synchronous replication
galera_new_clusterNetwork Optimization
netdataReal-time performance monitoring
netdata [options]bmonBandwidth monitor
bmon [options]Cluster Management
rancherContainer management platform
rancher [command]openshiftEnterprise Kubernetes platform
oc [command]Security Hardening
apparmorApplication security system
apparmor_parser [options]auditdSystem audit daemon
auditctl [options]Visualization Tools
kibanaData visualization platform
kibana [options]grafanaMetrics visualization
grafana-server [options]Complete Linux Command Reference
A comprehensive guide to Linux commands with detailed explanations, syntax, and practical examples.
500+ Linux Commands
Complete collection of Linux commands from basic to advanced system administration, networking, and security operations.
Practical Examples
Real-world command examples for Ubuntu, CentOS, Fedora, and other major distributions. Learn through practical use cases.
Smart Search
Find commands by name, description, or functionality. Our intelligent search helps you find exactly what you need.
Verified Syntax
Each command comes with verified syntax, flags, and options. Tested across multiple Linux distributions.
Offline Access
Download the complete Linux command reference as PDF. Access commands anytime, even without internet.
CLI Essentials
Master essential command-line operations for system administration, file management, and process control.
Organized Categories
Commands grouped by functionality: System, Network, Security, File Operations, and more.
Beginner Friendly
Perfect for beginners learning Linux commands or experienced users needing quick reference.
Latest Commands
Updated for 2024 with modern Linux commands, systemd operations, and container management.
Quick Reference
Fast, reliable command reference for developers, system administrators, and Linux enthusiasts.
How to Use the Linux Command Cheatsheet
Follow these easy steps to get started with Linux Command Cheatsheet and achieve your goals quickly.
Search through 500+ Linux commands instantly with our smart search feature
Find detailed syntax, usage patterns, and real-world examples for each command
Copy commands directly to your terminal with one click
Download the complete reference guide as PDF for offline access
Frequently Asked Questions
Find answers to commonly asked questions about our tools and services.
Still have questions?
Can't find what you're looking for? We're here to help you get the answers you need.