From 2a11b29c6835589a0d446e9e3f17aa82eb4ea622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Mon, 28 Jan 2019 19:38:12 +0100 Subject: [PATCH] lastb: add page (#2645) --- pages/linux/lastb.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/lastb.md diff --git a/pages/linux/lastb.md b/pages/linux/lastb.md new file mode 100644 index 0000000000..248b08042e --- /dev/null +++ b/pages/linux/lastb.md @@ -0,0 +1,23 @@ +# lastb + +> Show a listing of last logged in users. + +- Show a list of all last logged in users: + +`sudo lastb` + +- Show a list of all last logged in users since a given time: + +`sudo lastb --since {{YYYY-MM-DD}}` + +- Show a list of all last logged in users until a given time: + +`sudo lastb --until {{YYYY-MM-DD}}` + +- Show a list of all logged in users at a specific time: + +`sudo lastb --present {{hh:mm}}` + +- Show a list of all last logged in users and translate the IP into a hostname: + +`sudo lastb --dns`