linux-shell-sessions
Retrieves a list of all currently logged in users (sessions) from the /var/run/utmp log.
Syntax
linux-shell-sessions
Description
After running the linux-shell-sessions command, the output fields are as follows:
Output Fields
Field | Type | Description |
---|---|---|
user | String | User ID |
tty | String | Terminal |
host | String | Host name |
src_ip | IPv4 address | Source IP address from which the user logged in |
idle_time | Integer | Idle time in seconds |
jcpu | Double | CPU time consumed by all processes connected to the terminal in seconds |
pcpu | Double | CPU time used by the current process in seconds |
cmd_line | String | Running command line |