Cheat Sheet
Useful bash commands and snippets.
apt
Install specific package version
apt-cache policy kubelet
apt-get install kubelet=1.13.4-00Hold version
apt-mark hold kubelet kubeadm kubectlRemove hold version
apt-mark unhold kubelet kubeadm kubectlcrontab
List crontab for all users
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; donedu
Hidden files
Sort by size
ncurses interface
find
find and du -hsc
find and rm
Find and sed
Tools
fzf
grep
Sort by second column:
Hard drive management
List all hard drives and partitions:
journalctl
Get all logs
Get 20 most recent:
Get process logs
Processes management
Check if process is running
Swap management
Create swap partition
Disable swap
systemctl
Check if process is enable
List all services
telnet
Client close connection
Input ctrl+]
Then execute:
wget
Backup entire website.
References
https://www.linuxjournal.com/content/downloading-entire-web-site-wget
Last updated