Simple Linux Command Line notes: w display information about system users w [options] [username] w is used to display the names of users currently logged on to the system, as well as their terminal device numbers, logon times, running commands, and others some information: the username parameter of www.2cto.com only displays the information of this user. Option-f: delete FROM field-h: do not show the first line-s: show less information: the user name, terminal device, idle time, and running command w display the same 1st lines as the uptime display 1st lines. The information of this row includes the current time, the time when the system is running (in the unit of days, hours, and minutes), the number of logged-on users, and the amount of free and busy (average load) of the system ). The average load of www.2cto.com indicates from left to right that the number of processes waiting for running in the past 1 minute, 5 minutes, and 15 minutes is shown in the following information column: user tty from login @ idle jcpu pcpu what user is the USER name. TTY is the name of the device on which the user logs on. FROM is the name of the remote logon system. LOGIN @ specifies the logon date and time of the user. IDLE indicates how many minutes has elapsed since the user used the keyboard last time. JCPU refers to the CPU time used by all processes connected to the user's terminal, excluding completed background jobs. PCPU is the time used by the process specified in the WHAT column. WHAT is the command example that the USER is running w $ w 15:29:33 up, 2 users, load average: 0.22, 0.18, 0.21 user tty from login @ idle jcpu pcpu WHATsiu tty8: 0 3: 53 m 0.19 s gnome-session-siu pts/0: 0 15:30:01 0.00 s 0.56 s 22.71 s gnome-terminal the System user information is displayed by default www.2cto.com w-s $ w-s up, 2 users, load average: 0.20, 0.18, 0.21 user tty from idle WHATsiu tty8: 0 3: 54 m gnome-session -- session cinnamonsiu pts/0: 0 0.00 s gnome-terminal displays system user information in a short manner w-s-f username $ w-s-f siu 15:30:57 up, 2 users, load average: 0.13, 0.16, 0.20 user tty idle WHATsiu tty8 3: 55 m gnome-session -- session cinnamonsiu pts/0 0.00 s gnome-terminal specify USER name display information Tipswhoami command to view users currently in use