Pro tips
Daisho Komiyama edited this page Jul 27, 2020
·
2 revisions
Here's a list of useful tips when you ssh to your server.
-
sudo !!
: Executes the previous command with sudo permission -
head
prints the first 10 lines of file -
tail
prints the last 10 lines of file -
tail -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.