Questions tagged [uptime]

How long a system is currently up for. There is also a command called uptime.

The term uptime explains how long a system is up for. This can be useful for systems that need to stay up for long periods of time (reboots, crashes, etc...).

There is a command called uptime that will help you display that information when using a terminal.

28 questions
47
votes
6 answers

How to find which users are currently logged in?

uptime shows among others 4 users, should I be worried? According to man uptime uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and…
Bruni
  • 11,099
26
votes
4 answers

What's the fairest way to monitor total CPU time - per user?

On a multi user system, I want to measure each user's CPU usage in seconds of cpu time. For the purpose of this measurement, I assume that if a PID belongs to a user, this user is causing the CPU time - that is I'm ignoring daemons and the…
14
votes
10 answers

Maximum time for which a Linux PC can be UP?

Actually I had a linux system ( running Ubuntu 12.04.3 ) for days without reboot. I ran in to some errors like sleep getting hang and some network mounted file system not getting mount even able to ping it (verified via other PC, the network mount…
pRAShANT
  • 299
8
votes
2 answers

What counts towards uptime?

The question is simple: do time periods when computer is in any of the states below count towards total uptime of a system ? hibernation suspending the system changing runlevel NOTE: I am not interested in the uptime command itself. Quick look…
8
votes
1 answer

Why is time taken in hibernation included in system uptime?

When i go into hibernation and resume then look at the result of running uptime , i note that the the hibernation duration is also included. in pm-hibernate man pages. it states that: "During hibernate the system is fully powered off," . shouldn't…
danleyb2
  • 183
8
votes
2 answers

How to get real uptime?

Is there any easy way to calculate uptime excluding period system is suspended? I would like to count time I've spent in front of computer.
teodozjan
  • 181
4
votes
1 answer

Find out exact time when the Ubuntu machine was rebooted

uptime -s shows when the machine was started: sample output: 2020-12-31 03:24:00. Is there a way to know the exact datetime when the machine was rebooted?
4
votes
3 answers

How to generate uptime monthly report in linux?

I wanted to send monthly uptime report to my clients through email. Will any one help me how to generate monthly report.
life tree
  • 55
  • 1
  • 7
3
votes
1 answer

Is there a way I can get the time since my comptuer last booted?

Is there a log file I can see or command I can issue that will tell me how long my computer has been running since last time I booted or logged in under my account? I'm on Ubuntu 12.10.
Questioner
  • 6,959
2
votes
1 answer

how i can know the uptime on battery

is there a way I can know how much time the laptop is up on battery , i know there is the uptime -but it Tell how long the system has been running both on AC and battery
Fat Mind
  • 2,485
1
vote
0 answers

Check when was the computer ON?

My server has rebooted a few times in the past week due to electricity cuts. I would like to know when was the server running. Uptime only gives me information about the last time it's been on. Last only gives me information about user login but…
Katu
  • 3,663
1
vote
2 answers

Run command when uptime >= 20 min

I need run BASH script when uptime >= 20 min(for example). How I can do it? Please help me create script for check system uptime and check if uptime more 20 min - run another script. Thanks.
1
vote
2 answers

What does the call sign of the uptime mean (output of htop)?

I've runnting a ubuntu 12.04 and a 14.04 instance. If I call the uptime, the instance of version 12.04 returns: 65 days and the one of 14.04 returns: 112 days(!). I want to know the meaning of the (!) sign. Is it just specific to ubuntu 14.04 or…
My-Name-Is
  • 1,137
1
vote
1 answer

Determine how long the server was off, when it off and when it back on

Is there an application i can install on my server so as to know (be notified ) that server has gone off and for how long it was off and also know the time it went on again. Am trying nagios but cant figure out that option. Better still an…
1
vote
1 answer

how to find network active time?

How to know uptime ,downtime with timestamps of all connections of ifconfig. For my case they are three eth0,wlan0 and ppp0.
Raja G
  • 105,327
  • 107
  • 262
  • 331
1
2