You can always refer man pages for options. Like as follows.
... ... ...
As above quotes, you can take one example who -b tells same like when a person(OS this case) born(came up) and uptime tells how old a person(OS this case, means what time it got rebooted last time) is. Just an silly and simple examples. Hope this helps you.
Thanks,
R. Singh
That doesn't answer the question. On my system, the command line:
produced the output:
a few minutes ago. That shows a boot time reported by uptime about two minutes later than the time reported by who -b. I can blame that on the times being recorded at different phases in the boot process. I think seenuvasan1985 is asking why the timestamps on his system are ~6 months apart. Why did his system go down and come back up without rebooting?
Maybe someone took the system down to single user mode and then brought it back up to multi-user mode 187 days ago without rebooting???
I'm trying to get the uptime of my computer (Mac OS X) and I can go into the terminal and type "uptime" OK, and that gives me a string with the uptime in it. The problem is that the string changes a lot, and its very difficult to get the data I'm trying to extract out cleanly.
Now I have 3... (2 Replies)
On HP-UX, the 13th argument of uptime is sometime the load and sometime the word AVERAGE:???
14 Jun 06 5:00pm up 44 days, 54 mins, 0 users, load average: 0.00, 0.02, 0.03
14 Jun 06 5:15pm up 44 days, 1:09, 0 users, load average: 0.00, 0.01, 0.01
When the time is in minutes, then the load... (1 Reply)
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)
Hi,
I need some help about a script i need to write.
I want to check , if some specific process, are running since 2 hours.
I tried to use a loop , grep my pid and use find -ctime on /proc directory, to list what i need.
for i in `ps -ef |grep process |grep -v grep|awk '{print $2}'`... (2 Replies)
Hi gurus,
Is it possible to get the time on when the server was re-started or does the output from who -b is the answer to my question? UNIX flavour is Solaris.
The uptime command gives information on how long the server has been up but I want to know when the server was started. The output... (4 Replies)
My Linux system was last rebooted few hours ago.
But it seems little confusing for me to figure out the exact reason behind it.
I guess following command should justify what i meant to say.
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 ... (5 Replies)
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)
Hi All,
Having recently started a new job, a Data Center Migration in fact I have been tasked with looking at some of the older Solaris boxes when I came across this little gem.
nismas# uname -a
SunOS nismas 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-1
nismas# uptime
10:37am up 2900... (2 Replies)
Discussion started by: gull04
2 Replies
LEARN ABOUT NETBSD
ruptime
RUPTIME(1) BSD General Commands Manual RUPTIME(1)NAME
ruptime -- show host status of local machines
SYNOPSIS
ruptime [-alrtu]
DESCRIPTION
ruptime gives a status line like uptime(1) for each machine on the local network; these are formed from packets broadcast by each host on the
network via the rwhod(8) daemon. The default broadcast time by the hosts is every three minutes.
Machines for which no status report has been received for 11 minutes are shown as being down.
The options are as follows:
-a Users idle an hour or more are not counted unless the -a flag is given.
-l Sort by load average.
-r Reverses the sort order.
-t Sort by uptime.
-u Sort by number of users.
The default listing is sorted by host name.
FILES
/var/rwho/whod.* data files
SEE ALSO rup(1), rwho(1), uptime(1), rwhod(8)HISTORY
ruptime appeared in 4.2BSD.
BSD August 9, 2005 BSD