Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into ssh-add
Browse files Browse the repository at this point in the history
mashehu committed Oct 17, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 52f0987 + fb91a18 commit 29247e4
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions pages/common/last.md
Original file line number Diff line number Diff line change
@@ -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`
10 changes: 5 additions & 5 deletions pages/common/sendmail.md
Original file line number Diff line number Diff line change
@@ -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 [email protected] (assuming your local mail server is configured for this) to [email protected] containing the message in `message.txt`:
- Send an email from [email protected] (assuming the mail server is configured for this) to [email protected] 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 [email protected] (assuming your local mail server is configured for this) to [email protected] containing the file `file.zip`:
- Send an email from [email protected] (assuming the mail server is configured for this) to [email protected] 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}}`

0 comments on commit 29247e4

Please sign in to comment.