Команда w

Displays information about the users currently on the machine, and their processes. The header shows, in this order, the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

Синтаксис

w [-husfVo] [user]

-hDon't print the header.
-uIgnores the username while figuring out the current process and cpu times. To demonstrate this, do a "su" and do a "w" and a "w -u".
-sUse the short format. Don't print the login time, JCPU or PCPU times.
-fToggle printing the from (remote hostname) field. The default as released is for the from field to not be printed, although your system administrator or distribution maintainer may have compiled a version in which the from field is shown by default.
-VDisplay version information.
-oOld style output. Prints blank space for idle times less than one minute.
userShow information about the specified user only.

Примеры

w

Would display information similar tot he below example.

18:31:58 up 156 days, 5:16, 64 users, load average: 0.27, 0.27, 0.27
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

Обратно к списку команд