Command Reference
Linux Commands
Essential Linux commands for cybersecurity professionals. Copy and use these commands in your terminal.
Showing 28 commands
File Operations
6 commandsls -laList all files with details
$ ls -la /home
catDisplay file contents
$ cat /etc/passwd
grepSearch text patterns
$ grep "error" /var/log/syslog
findSearch for files
$ find / -name "*.log"
chmodChange file permissions
$ chmod 755 script.sh
chownChange file ownership
$ chown user:group file.txt
Network
7 commandsip addrShow IP addresses
$ ip addr show eth0
netstat -tulpnShow listening ports
$ netstat -tulpn | grep :80
ss -tulpnSocket statistics
$ ss -tulpn
curlTransfer data from URLs
$ curl -I https://example.com
wgetDownload files
$ wget https://example.com/file.zip
pingTest network connectivity
$ ping -c 4 google.com
tracerouteTrace packet route
$ traceroute google.com
Process
5 commandsps auxList all processes
$ ps aux | grep nginx
topReal-time process viewer
$ top -u username
htopInteractive process viewer
$ htop
killTerminate processes
$ kill -9 1234
systemctlService management
$ systemctl status nginx
System
5 commandsuname -aSystem information
$ uname -a
df -hDisk space usage
$ df -h
free -mMemory usage
$ free -m
uptimeSystem uptime
$ uptime
whoamiCurrent user
$ whoami
Security
5 commandssudoExecute as superuser
$ sudo apt update
passwdChange password
$ passwd username
iptablesFirewall management
$ iptables -L
ufwUncomplicated Firewall
$ ufw status
sshSecure shell connection
$ ssh user@host