Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uptime(1) [suse man page]

UPTIME(1)							   User Commands							 UPTIME(1)

NAME
uptime - tell how long the system has been running SYNOPSIS
uptime [OPTION]... [FILE] DESCRIPTION
Print the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes. Processes in an uninterruptible sleep state also contribute to the load average. If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. --help display this help and exit --version output version information and exit AUTHOR
Written by Joseph Arceneaux, David MacKenzie, and Kaveh Ghazi. REPORTING BUGS
Report uptime bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for uptime is maintained as a Texinfo manual. If the info and uptime programs are properly installed at your site, the command info coreutils 'uptime invocation' should give you access to the complete manual. GNU coreutils 7.1 July 2010 UPTIME(1)

Check Out this Related Man Page

USERS(1)                                                           User Commands                                                          USERS(1)

NAME
users - print the user names of users currently logged in to the current host SYNOPSIS
users [OPTION]... [FILE] DESCRIPTION
Output who is currently logged in according to FILE. If FILE is not specified, use /var/run/utmp. /var/log/wtmp as FILE is common. --help display this help and exit --version output version information and exit AUTHOR
Written by Joseph Arceneaux and David MacKenzie. REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report users translation bugs to <http://translationproject.org/team/> COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
getent(1), who(1) Full documentation at: <http://www.gnu.org/software/coreutils/users> or available locally via: info '(coreutils) users invocation' GNU coreutils 8.28 January 2018 USERS(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. Shell Programming and Scripting

Tail??

Hello all, I have search the forum and could not find an answer...Here is what I am trying to do. Every 15 minutes, a script send uptime output to a logfile (dailylog.log), that file contains lines like the one below: 11:21am up 44 days, 19:15, 1 user, load average: 0.00, 0.02, 0.03 ... (7 Replies)
Discussion started by: qfwfq
7 Replies

4. UNIX for Dummies Questions & Answers

user issues

Hi there, I'm a beginner with UNIX and have to manage a set of 15 users. The problem we have is that there are only 15 licenses for these users, so occasionally they get locked out and can't log back on. I've been using the ps -ef|grep command to check the users, as well as the w commnand,... (6 Replies)
Discussion started by: Lmm05
6 Replies

5. UNIX for Dummies Questions & Answers

GeekTool

Hello to whoever is reading this! I try to display my uptime on my desktop with a program called GeekTool. For that purpose I use this command uptime | awk '{print "Uptime : " $3 " " }' So it looks like this Uptime : 3:01, My first question is how to remove the comma behind the... (7 Replies)
Discussion started by: MastaFue
7 Replies

6. 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

7. 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

8. AIX

Hmc uptime

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

9. 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

10. UNIX for Advanced & Expert Users

We have uptime but is there a starttime?

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)
Discussion started by: newbie_01
4 Replies

11. 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

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. Red Hat

Server uptime is showing 0hr but server not rebooted

Hi One of our server is showing the uptime 0hr 5mints there is no log in /var/log/messages there is no log in command "last" kernel version is 2.4.9 (RH2.1 AS) What could be the reason for this. is this issue is related to uptime counter reached max how to verify this. Best Regards KVK (4 Replies)
Discussion started by: venikathir
4 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. Red Hat

Difference between uptime and who -b

Hi Folks, I have been checking on a redhat server for patching, when I tried the output for uptime and who -b both are not matching. I do not know the reason what happened and why it seems like this. Please assist someone and explain in detail. I would appreciate if I get the right... (5 Replies)
Discussion started by: seenuvasan1985
5 Replies