NAME
uptime, w — show how long system has been up, and/or who is logged in and what they are doing
SYNOPSIS
uptime
[-hlsuw]
[user]
w
[-hlsuw]
[user]
DESCRIPTION
uptime
prints the current time, the length of time the system has been up,
the number of users logged on to the system,
and the average number of jobs in the run queue over the last 1, 5, and
15 minutes.
w
is linked to
uptime
and prints the same output as
uptime -w,
displaying a summary of the current activity on the system.
Options
uptime
and
w
recognize the following options:
- -h
Suppress the first line and the heading line.
This option should not be used with the
-u
option.
This option assumes the use of the
-w
option to
uptime.
- -l
Use long output.
This option assumes the use of the
-w
option to
uptime.
- -s
Use the short form of output for displaying terminal information.
The terminal name is abbreviated;
the login time and CPU times are suppressed.
- -u
Print only the first line describing the overall state of the system.
This is the default for the
uptime
command.
- -w
Print a summary of the current activity on the system for each user.
This is the default for the
w
command.
EXAMPLES
The command:
produces text resembling the following:
2:30pm up 14days, 2:39, 33 users, load average: 1.71, 1.88, 1.80
depending upon the current status of the system.
AUTHOR
uptime
was developed by the University of California, Berkeley.