From d06b00f353cdfd0f11e8dbbfaef2c3e38f609203 Mon Sep 17 00:00:00 2001 From: onceupon Date: Mon, 22 Oct 2018 10:52:49 +0800 Subject: [PATCH] Insert items for the 'system' section Add items for finding out last and current login users. --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c0d5f17..e4ec57b 100644 --- a/README.md +++ b/README.md @@ -1579,11 +1579,6 @@ gsettings set org.gnome.gedit.preferences.editor scheme 'cobalt' gsettings set org.gnome.gedit.preferences.editor use-default-font false gsettings set org.gnome.gedit.preferences.editor editor-font 'Cantarell Regular 12' ``` -##### Find out who has logged in on your system ---> [Quick] Printing out only the names: -```bash -users -``` --> [Detail] Printing out login time, load average, etc ```bash @@ -1771,6 +1766,19 @@ top|grep sublime_text [wrk](https://github.com/wg/wrk) - HTTP benchmark. +##### Show a listing of last logged in users. +```bash +lastb +``` +##### Show a listing of current logged in users, print information of them +```bash +who +``` +##### Print the user names of users currently logged in to the current host. +```bash +users +``` + ## Hardware [[back to top](#handy-bash-oneliner-commands)]