Prints a summary of current system activity.
The w command prints a summary of the current activity on the system. The summary includes the following:
Item | Description |
---|---|
WPAR | Workload partition name. |
User | Who is logged on. |
tty | Name of the tty the user is on. |
login@ | Time of day the user logged on. |
idle | Number of
minutes since a program last attempted to read
from the terminal. Note: The idle time is taken from the global terminal
when you log into wpar using the clogin command.
|
JCPU | System unit time used by all processes and their children on that terminal. |
PCPU | System unit time used by the currently active process. |
What | Name and arguments of the current process. |
The heading line of the summary shows the current time of day, how long the system has been up, the number of users logged into the system, and the load average. The load average is the number of runnable processes over the preceding 1-, 5-, 15-minute intervals.
The following examples show the different formats used for the login time field:
Item | Description |
---|---|
10:25am | The user logged in within the last 24 hours. |
Tue10am | The user logged in between 24 hours and 7 days. |
12Mar91 | The user logged in more than 7 days ago. |
If a user name is specified with the User parameter, the output is restricted to that user.
Item | Description |
---|---|
-@ | Prints
the System activity tagged with a workload partition name:
Note: Not
providing the -@ option indicates that the
current WPAR or global
environment, wherever the w command is running.
|
-h | Suppresses the heading. |
-l | Prints the summary in long form. This is the default. |
-s | Prints the summary in short form. In the short form, the tty is abbreviated, and the login time, system unit time, and command arguments are omitted. |
-u | Prints the time of day, amount of time since last system startup, number of users logged on, and number of processes running. This is the default. Specifying the -u flag without specifying the -w or -h flag is equivalent to the uptime command. |
-w | The equivalent of specifying the -u and -l flags, which is the default. |
-X | Prints all available characters of each user name instead of truncating to the first 8 characters. The user name is also moved to the last column of the output. |
Item | Description |
---|---|
/etc/utmp | Contains the list of users. |