• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# Uptime in Linux

## Recommended Posts

Is there a text file somewhere in /proc that tells how long the system has been running? Sorry, kinda new to Linux =/ Any help in appreciated

##### Share on other sites
Just open a terminal and type ''uptime'' and hit enter.

##### Share on other sites
/proc/uptime is what you are looking for. IIRC, it contains two values, the first one being the uptime in seconds.

##### Share on other sites
Thanks for the reply. /proc/uptime is what I''m lookin'' for. Didn''t know what the two values meant, though.

##### Share on other sites
YEAH! 5:01 hours uptime! I ROCK!

How do people get to several days uptime? Do they not turn their computers off at night? Are they all freaks who require no sleep? I can understand servers having long uptimes, but what about these ordinary joes running Linux on a desktop machine?

##### Share on other sites
quote:
How do people get to several days uptime? Do they not turn their computers off at night?

Yes. I turn mine off when there''s not something that I''m working on that I''d like to leave running because my machine is pretty loud .

QBomb: I didn''t know you actually wanted the file, at least Martee was helpful .

##### Share on other sites
quote:
YEAH! 5:01 hours uptime! I ROCK!

How do people get to several days uptime? Do they not turn their computers off at night? Are they all freaks who require no sleep? I can understand servers having long uptimes, but what about these ordinary joes running Linux on a desktop machine?

Try 5 years uptime and no crashes... That''s how long the School Commission I work for had their server up( it''s mainly a web server but it also hosts some files ). Also, our SAN running RedHat has been up for 1 year now and has been running like a charm...

[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]

##### Share on other sites
quote:
How do people get to several days uptime? Do they not turn their computers off at night? Are they all freaks who require no sleep? I can understand servers having long uptimes, but what about these ordinary joes running Linux on a desktop machine?

Who are you calling a freak... My linux box never sleeps and I mean my desktop. FYI, computers aren''t supposed to be shutdown, they are supposed to stay on for as long as possible. Although Wincrap still has some problems with that. Last I checked, 27 days was the longest you could leave Win98 up before it crashed...

[Cyberdrek | the last true sorcerer | Spirit Mage - mutedfaith.com]

##### Share on other sites
Computer''s aren''t supposed to shut down? Who says?

Sure, hard drives have a limit number of start/stop cycles, but so does everything.

And computers use a lot of power. Leaving the computer on all the time even when it''s not used adds a few extra $to the power bill. What if everyone left their computer on all the time? Think of all the extra energy it''d take to power them all! Think of how much coal and oil and uranium it''d take to make all that power! If you care anything at all about the enviroment, you''ll turn your computer off, you uncaring freak! But who says you''re not supposed to turn your computer off? #### Share this post ##### Link to post ##### Share on other sites quote: Original post by BradDaBug Computer''s aren''t supposed to shut down? Who says? We says. quote: And computers use a lot of power. Leaving the computer on all the time even when it''s not used adds a few extra$ to the power bill.

Modern computers have features like ACPI and APM. When your computer is in sleep mode, it uses less electricity. When you consider that more electricity is required to start a computer (just like an engine, or any other system overcoming inertia of any form), that whole electricity bill issue becomes moot.

Macs have always been "always-on" computers. Think about it. The power switch is on the keyboard.

(Falling more in love with OS X by the day...)

##### Share on other sites
quote:
When you consider that more electricity is required to start a computer (just like an engine, or any other system overcoming inertia of any form), that whole electricity bill issue becomes moot.

Sure it takes more energy to start a computer or car than it takes to operate normally, but leaving your car running over night (assuming letting it idle that long wouldn''t damage it in the first place) would take much more gas than just cranking it the next morning. Same as florecent lights. But you still turn them off at night when they won''t be used for several hours.

And I''m not completely anal about turning my computer off when I''m not using it. I usually boot it in the morning and turn it off when I go to bed. But I know others that come into a room, turn on their computer, use it for a few minutes, turn it off, come back a few minutes later, turn it back on, etc.

As for Macs, I''ve never got to use one. How about somebody buy me one? Anybody?

##### Share on other sites
quote:
Sure it takes more energy to start a computer or car than it takes to operate normally, but leaving your car running over night (assuming letting it idle that long wouldn''t damage it in the first place) would take much more gas than just cranking it the next morning. Same as florecent lights. But you still turn them off at night when they won''t be used for several hours.

Not if they had a sleep mode. There''s no complete analogy for computers these days. My old machine would spin down the hard disk, switch the monitor off (to be awakened at a signal from the CPU) and turn the power to peripherals off, then go into a minimal response sate. To awaken it, simply press a key. When your car has that, then leaving it on 24/7 may become reasonable (if your car can also fuel on the go).

quote:

As for Macs, I''ve never got to use one.

For the longest time I wouldn''t have recommended them, as they were "somewhat temperamental." Then came OS X. At the very least, go to a store and play around with one for a good half hour. Make sure you check out the utilities (and remember that your home install would come with the Developer CD).

##### Share on other sites
quote:

How do people get to several days uptime? Do they not turn their computers off at night? Are they all freaks who require no sleep? I can understand servers having long uptimes, but what about these ordinary joes running Linux on a desktop machine?

Err.... to run SETI@home?

##### Share on other sites
But it''s no fun without the cool GUI! You have to have the GUI to see the signals! It just doesn''t look as impressive without it.

• ### Forum Statistics

• Total Topics
628282
• Total Posts
2981818

• 9
• 10
• 11
• 17
• 15