Pro tips - kdaisho/Blog GitHub Wiki
Here's a list of useful tips when you ssh to your server.
sudo !!
: Executes the previous command with sudo permissionhead
prints the first 10 lines of filetail
prints the last 10 lines of filetail -f /var/log/auth.log
prints the last lines ofauth.log
and it updates if new log is created. So you can watch all login attempts in real time.