Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uptime(1) [osx man page]

UPTIME(1)						    BSD General Commands Manual 						 UPTIME(1)

NAME
uptime -- show how long system has been running SYNOPSIS
uptime DESCRIPTION
The uptime utility displays the current time, the length of time the system has been up, the number of users, and the load average of the system over the last 1, 5, and 15 minutes. SEE ALSO
w(1) HISTORY
The uptime command appeared in 3.0BSD. BSD
April 18, 1994 BSD

Check Out this Related Man Page

uptime(1)							   User Commands							 uptime(1)

NAME
uptime - show how long the system has been up SYNOPSIS
uptime DESCRIPTION
The uptime command prints the current time, the length of time the system has been up, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes. It is, essentially, the first line of a w(1) command. EXAMPLES
Below is an example of the output uptime provides: example% uptime 10:47am up 27 day(s), 50 mins, 1 user, load average: 0.18, 0.26, 0.20 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------------------------------------+ |ATTRIBUTE TYPE ATTRIBUTE VALUE | |Availability SUNWcsu | +-----------------------------------------------------------+ SEE ALSO
w(1), who(1), whodo(1M), attributes(5) NOTES
who -b gives the time the system was last booted. SunOS 5.11 18 Mar 1994 uptime(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Interpretation of the uptime command

Hi there, do someone have detailed information how to interpret the uptime command or rather which values can be called normal? (i know what the information means, but i have no idea if these values are ok or to high: 3:02pm an 13:53, 2 Benutzer, Durchschnittslast: 10,06, 12,05, 13,00) ... (5 Replies)
Discussion started by: odin1999
5 Replies

2. UNIX for Dummies Questions & Answers

script to autorestart if uptime greater than... help needed.

i'm trying to write a script that will check my os x box for uptime and autorestart gracefully if the uptime is greater than a certain number of days. thus far i have this: if uptime | cut -d ',' -f 1 | cut -d ' ' -f 4 -gt 10 ; then echo "yes" fi this doesn't work and i've tried... (11 Replies)
Discussion started by: alternapop
11 Replies

3. UNIX for Dummies Questions & Answers

Uptime

hello folks! how can I display just the uptime without the current time, the word "up", and the load averages using the uptime command or some other command I do not know about? (13 Replies)
Discussion started by: MastaFue
13 Replies

4. UNIX for Dummies Questions & Answers

uptime, load average, and # cpus

I was told that there is a correspondance between the number of cpus, the load averages, and when the cpus reach 100% capacity. I have 4 cpus and said that once the numbers hit 4.00, my CPUs are 100% at capacity. load average: 0.08, 0.09, 0.11 Is that correct? Thank you (7 Replies)
Discussion started by: csross
7 Replies

5. Shell Programming and Scripting

get only the up time from uptime command

Hi all,:o i am new to shell scripting and i have aproblem like i just want to extractthe uptime of the system from an uptime command which gives the output as the Current time , how long the system has been running,how many users are surrently logged on and the system load averages for past 1,5,... (5 Replies)
Discussion started by: tulip
5 Replies

6. AIX

Hmc uptime

HELLO ALL HOW CAN I CHECK HMC UPTIME :confused: :confused: VERSION 6 :D (7 Replies)
Discussion started by: kalaso
7 Replies

7. AIX

After run ps , uptime , w command I get reply "killed"

Hi, After run ps , uptime , w command I get reply "killed" as normal dba and staff group user. As root every command works fine. I cheched all the user settings , right with other servers and I could not find any error and other settings. The oslevel is 5300-10-01-0921. Any idea to... (12 Replies)
Discussion started by: boki
12 Replies

8. Solaris

uptime and last reboot command in solaris

Hi, Can someone explain in detail what 'uptime' ,'last reboot' and 'who -b' commands do in solaris. this commands are not executing in every solaris box. why this is happening. Has solaris got some inbuilt commands into it. If yes then where i have found them? Thanks,Soubhik (6 Replies)
Discussion started by: soubmukh
6 Replies

9. Homework & Coursework Questions

linux service script for storing uptime

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Can you please advise a script for the following: write linux service named system_up_duration .This service... (6 Replies)
Discussion started by: fed.linuxgossip
6 Replies

10. Shell Programming and Scripting

Extract the uptime from the output of the uptime command

Hi! I want to extract the uptime from the output of the uptime command. The output: 11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43 I just need the "3:02" part. How can I do this? Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies

11. Solaris

uptime command not showing how long the system has been up

Hello folks, uptime command not shows how long the system has been up. I know it come from a corruption of /var/adm/utmpx file. I've done : cat /dev/null > /var/adm/utmpx Now who and last commands work fine. But uptime still give me back an answer without the "up time". In which... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

12. Programming

How to get uptime in miliseconds ?

I need to get, in my application, in different methods, the uptime of the system in milliseconds. time() - returns only seconds. /proc/uptime - returns the seconds + a truncated milliseconds value, but it need to be parsed to extract data and convert it to milliseconds Any other suggestions ? (6 Replies)
Discussion started by: Pufo
6 Replies

13. Shell Programming and Scripting

Passing file name to get uptimes

Hi: I am very new to shell scripting, and started writing a script today. I am trying to read a server name from a list that stores server name and passing each server name to get the uptime. What i would to achieve is that, i should get a file with server names along with their uptimes on a... (12 Replies)
Discussion started by: hithere30052
12 Replies

14. Solaris

Finding system uptime without login

Hi, Am writing a script where I want to find uptime of certain servers. Is there any command where we can find uptime without login to the server, since the server list is big logging to the server will time consuming. Thanks in advance (7 Replies)
Discussion started by: rogerben
7 Replies

15. Shell Programming and Scripting

Script has no result!! -gt -lt

Hello, Result of scripts are emty. If statements are not working but why? What is right line? 1- #!/bin/ksh up=`uptime |awk '{print$3}'` hostname=`hostname` if ] && ]; then echo "$hostname | $up | Running over than one year." fi exit 0 2- #!/bin/ksh up=`uptime |awk... (12 Replies)
Discussion started by: getrue
12 Replies