Shell / Terminal / Bash

Commands

Run the last command as root

Useful when you forget to use sudo for a command. “!!” grabs the last run command.

1218 sudo !!

Ctrl+l to clear the termina lscreen

Close shell keeping all subprocess running

147 disown -a && exit prayer · 2009-04-10 12:22:34

Set audible alarm when an IP address comes online

Waiting for your server to finish rebooting? Issue the command above and you will hear a beep when it comes online. The -i 60 flag tells ping to wait for 60 seconds between ping, putting less strain on your system. Vary it to your need. The -a flag tells ping to include an audible bell in the output when a package is received (that is, when your server comes online).

119 ping -i 60 -a IP_address

Utilities

https://github.com/antonmedv/walk https://github.com/extrawurst/gitui