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

FieldTypeDescription
userStringUser ID
ttyStringTerminal
hostStringHost name
src_ipIPv4 addressSource IP address from which the user logged in
idle_timeIntegerIdle time in seconds
jcpuDoubleCPU time consumed by all processes connected to the terminal in seconds
pcpuDoubleCPU time used by the current process in seconds
cmd_lineStringRunning command line