tar -zxvf
ls -hal
du -h -d 1
cat long_log_file.txt | tail -n 100
rsync -ravP
sudo usermod -a -G docker $USER
tput rmcup if you were previously in tmux/vim/top and scroll becomes weird after exiting
the bash script preamble:
#!/bin/bash
set -euo pipefailkill process on port: kill -9 $(lsof -t -i:PORT)
journalctl -xe for system debugging
lspci
crictl for low-level k8s debugging
other dev tricks
VSCode extensions i can’t live without:
- Peacock for color-coding windows if working on multiple projects/repos simultaneously. Save to
foo.code-workspacefile instead ofsettings.jsonif working with others and you don’t want to check in your personal colors to git. - VSCode Pets
A watch command that source ~/.zshrc’s before starting:
function watch { command watch --color -x zsh -ic "$1" }Get fzf and zsh-autocomplete plugins for oh-my-zsh so you won’t need to memorize commands again.
explainshell.com
https://www.composerize.com/ to convert between docker commands and docker compose

