From fc835b18bbe7e0e2741d190d5f17f055f3d7cb78 Mon Sep 17 00:00:00 2001 From: Cvetomird91 Date: Thu, 31 Dec 2015 00:46:40 +0200 Subject: [PATCH] last: edited to stick to the convetion and added more options --- pages/common/last.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/common/last.md diff --git a/pages/common/last.md b/pages/common/last.md new file mode 100644 index 0000000000..c796082a52 --- /dev/null +++ b/pages/common/last.md @@ -0,0 +1,27 @@ +# last + +> View the last logged in users + +- view last logins, their duration and other information as read from /var/log/wtmp + +`last` + +- specify how many of the last logins to show + +`last -n {{login_count}}` + +- view full login times and dates + +`last -F` + +- view the last login by a specific user + +`last {{user_name}}` + +- view the last reboot (last login of the pseudo user reboot) + +`last reboot` + +- view the last shutdown (last login of the pseudo user shutdown) + +`last shutdown`