Unix / Linux

You can use $timeout command in linux to exit the bash command if it doesn't finishes in time X Example: $timeout 2 cat *.txt If $cat commane doesn't finishes in 2 seconds it will kill the command. Usefull while automation.

port forwarding - https://unix.stackexchange.com/questions/115897/whats-ssh-port-forwarding-and-whats-the-difference-between-ssh-local-and-remot

$ alias s="du -hs * | sort -rh | head -5"

Last updated