Fun Linux Commands
A cache of useful linux commands
General / Basic:
dpkg-reconfigure tzdata
--> set timezonehtop
nettop
nethogs
tasksel
--> package installation (LAMP)less xxxx.log
-->/
to search andG
goes to the endjournalctl -f
ordmesg
--> syslog follow
Packages:
apt list --upgradable
apt upgrade --show-upgraded
Networking:
lsof -iTCP -sTCP:LISTEN
lsof -iTCP -sTCP:ESTABLISHED
lsof -UDP
ufw status
hostname
--> hosthostname -f
--> fqdnhostname -F XXX.XXX
--> set fqdn
Disk:
df -h
--> disk usage all partitionsdu -hc | sort -rh | head -20
--> show file/folder sizes with total, add sort, then show only top 20
Files:
/etc/hostname
/etc/hosts