Merge remote-tracking branch 'upstream/master' into ssh-add

This commit is contained in:
mashehu
2017-10-17 16:53:25 +02:00
2 changed files with 11 additions and 11 deletions

View File

@@ -10,18 +10,18 @@
`last -n {{login_count}}` `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` `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` `last shutdown`

View File

@@ -4,12 +4,12 @@
- Send a message with the content of message.txt to the mail folder of local user `user_name`: - 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}}`