[Milberg09] 5.4. w (Unix-generic)

来源:百度文库 编辑:神马文学网 时间:2024/05/01 21:27:46

5.4. w (Unix-generic)

/usr/bin/w64 [ -hlsuwX ] [ user ]

The wcommand prints a summary of all current activity on the system. I likethis command — always have and always will. Sometimes I run it evenbefore vmstat. I appreciate the clear, concise way in which wprovides important information, such as load average. You can tell alot about your system from the load average. If my load averagecommonly varies between 2 and 5 but is 37 when I run this command, I'mabout ready to say, "Houston we have a problem." In the following case,we're okay.

# w

08:29AM up 1 day, 23:44, 2 users, load average: 1.00, 1.00, 1.01

User tty login@ idle JCPU PCPU what
u0004773 pts/0 06:40AM 0 0 0 -ks
u0004773 pts/1 08:28AM 0 0 0 -ksh