Saved Bookmarks
| 1. |
Which command is useful to find current user information in Linux/Unix? |
|
Answer» To find out which users are currently LOGGED in to your server or system, use the who command. The who command provides the following information:
Syntax: $ who [options] [filename]Examples:
Command $ whoOutput user@host-0231:~$ whogourav pts/0 2021-03-10 17:04 (:0.0)sonia pts/1 2021-03-10 18:23 (:0.0)
Command $ who -HOutput user@host-0231:~$ who -HNAME LINE TIME COMMENTgourav pts/0 2021-03-10 17:04 (:0.0)
Command $ whoamiOutput gkuser@host-0231:~$ whoamigkuser |
|