Unix / Linux
Last updated
Was this helpful?
Last updated
Was this helpful?
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 commane doesn't finishes in 2 seconds it will kill the command. Usefull while automation.
$ alias s="du -hs * | sort -rh | head -5"
port forwarding -