Linux

Published on 30 December 2022

Basics

tree, pager, xargs, math, sed, awk, head, tail -f, github starred jobs, fg, Ctrl+Z

Show file sizes — search for huge in your config.fish

Windows terminal flyout window from top can be created using Win+~
It supports tabs

pidof <program name> to get IDs which you usually get by ps aux or ps -ef

strings prints readable text present in binary files. Eg. strings $(which tail)

file prints for which OS/architecture the program is compiled for. Eg. file some-mac-arm64-cli

cmp --silent file1 file2 || echo "files are different" to check if files are different

Flush DNS in Fedora

sudo resolvectl flush-caches
sudo iptables --flush
resolvectl flush-caches