diff --git a/pages/common/last.md b/pages/common/last.md index ef670573a7..b03e1054ca 100644 --- a/pages/common/last.md +++ b/pages/common/last.md @@ -10,18 +10,18 @@ `last -n {{login_count}}` -- View full login times and dates: +- Print the full date and time for entries and then display the hostname column last to prevent truncation: -`last -F` +`last -F -a` -- View the last login by a specific user: +- View all logins by a specific user and show the ip address instead of the hostname: -`last {{user_name}}` +`last {{user_name}} -i` -- View the last reboot (last login of the pseudo user reboot): +- View all recorded reboots (i.e., the last logins of the pseudo user "reboot"): `last reboot` -- View the last shutdown (last login of the pseudo user shutdown): +- View all recorded shutdowns (i.e., the last logins of the pseudo user "shutdown"): `last shutdown` diff --git a/pages/common/sendmail.md b/pages/common/sendmail.md index 36194db499..74d2a0b543 100644 --- a/pages/common/sendmail.md +++ b/pages/common/sendmail.md @@ -4,12 +4,12 @@ - Send a message with the content of message.txt to the mail folder of local user `user_name`: -`sendmail user_name < message.txt` +`sendmail {{user_name}} < {{message.txt}}` -- Send an email from you@yourdomain.com (assuming your local mail server is configured for this) to test@gmail.com containing the message in `message.txt`: +- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the message in `message.txt`: -`sendmail -f test@gmail.com you@yourdomain.com < message.txt` +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}` -- Send an email from you@yourdomain.com (assuming your local mail server is configured for this) to test@gmail.com containing the file `file.zip`: +- Send an email from you@yourdomain.com (assuming the mail server is configured for this) to test@gmail.com containing the file `file.zip`: -`sendmail -f test@gmail.com you@yourdomain.com < file.zip` +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}`