Insert items for the 'system' section

Add items for finding out last and current login users.
This commit is contained in:
onceupon 2018-10-22 10:52:49 +08:00 committed by GitHub
parent 1322960433
commit d06b00f353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 use-default-font false
gsettings set org.gnome.gedit.preferences.editor editor-font 'Cantarell Regular 12' 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 --> [Detail] Printing out login time, load average, etc
```bash ```bash
@ -1771,6 +1766,19 @@ top|grep sublime_text
[wrk](https://github.com/wg/wrk) - HTTP benchmark. [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 ## Hardware
[[back to top](#handy-bash-oneliner-commands)] [[back to top](#handy-bash-oneliner-commands)]