← Cheat Sheets
Linux System and Network Commands
Check resources and connectivity.
# Linux System and Network Commands
Check resources and connectivity.
```bash
uname -a # kernel and system
uptime # load and uptime
free -h # memory
df -h # disk space
du -sh * # folder sizes
lsblk # block devices
whoami; id # current user
ip a # network interfaces
ss -tulpn # listening ports
ping -c 4 host
dig example.com # DNS lookup
traceroute host
nc -zv host 443 # test a port
sudo apt update && sudo apt install pkg # Debian/Ubuntu
sudo dnf install pkg # Fedora/RHEL
```