Simple Linux Command Line notes: w

Source: Internet
Author: User

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 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 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 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.