Watch live bandwidth usage broken down by network interface using nload or ifstat.
$ # Using nload (apt install nload):
nload eth0
# Without extra tools — poll /proc/net/dev:
watch -n 1 'cat /proc/net/dev | column -t'
Delete this trick? This cannot be undone.
Cancel
Print every environment variable in alphabetical order — handy when debugging missing config or checking what a script will see.
$ printenv | sort
# Or just search for a specific one:
printenv | grep -i path
Delete this trick? This cannot be undone.
Yes, delete
Cancel
List all systemd services and their current status on modern Linux systems.
$ systemctl list-units --type=service --state=running
# Full list including inactive:
systemctl list-units --type=service
Delete this trick? This cannot be undone.
Yes, delete
Cancel
Stream new lines appended to a log file, useful for monitoring deployments or service output.
$ tail -f /var/log/syslog
# Follow multiple files at once:
tail -f /var/log/nginx/access.log /var/log/nginx/error.log
Delete this trick? This cannot be undone.
Yes, delete
Cancel
Find which directories are eating your disk space, sorted from largest to smallest.
$ du -sh /* 2>/dev/null | sort -rh | head -20
# Show only current directory depth 1:
du -sh ./*/ | sort -rh
Delete this trick? This cannot be undone.
Yes, delete
Cancel
The watch command re-runs a command at a set interval and displays the output — great for monitoring.
$ # Refresh every 2 seconds (default):
watch df -h
# Every 0.5 seconds, highlight differences:
watch -n 0.5 -d 'free -m'
Delete this trick? This cannot be undone.
Yes, delete
Cancel
List all listening TCP/UDP ports and the process that owns them.
$ # All listening sockets + process names:
ss -tulnp
# Or with netstat (older systems):
netstat -tulnp
# Check if a specific port is open:
ss -tulnp | grep ':443'
Delete this trick? This cannot be undone.
Yes, delete
Cancel