From fcdd190c3afe611595d1be965fa08a18ce7bf4e6 Mon Sep 17 00:00:00 2001 From: kalebo Date: Mon, 16 Oct 2017 15:39:44 -0600 Subject: [PATCH 1/3] Corrected inaccuracy --- pages/common/sendmail.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/sendmail.md b/pages/common/sendmail.md index 36194db499..e279eb10d9 100644 --- a/pages/common/sendmail.md +++ b/pages/common/sendmail.md @@ -6,10 +6,10 @@ `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` From 3ff22d2260f184e4fb6410daa295b05fc290c967 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 17 Oct 2017 09:33:07 +0530 Subject: [PATCH 2/3] Adding tokens to variables --- pages/common/sendmail.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/sendmail.md b/pages/common/sendmail.md index e279eb10d9..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 the mail server is configured for this) to test@gmail.com containing the message in `message.txt`: -`sendmail -f you@yourdomain.com test@gmail.com < message.txt` +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{message.txt}}` - 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 you@yourdomain.com test@gmail.com < file.zip` +`sendmail -f {{you@yourdomain.com}} {{test@gmail.com}} < {{file.zip}}` From fb91a188bda926f0e34740a0d76608cad0aaaf7a Mon Sep 17 00:00:00 2001 From: kalebo Date: Tue, 17 Oct 2017 00:30:41 -0600 Subject: [PATCH 3/3] last: add example that avoids hostname truncation (#1540) --- pages/common/last.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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`