LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2005, 10:27 PM   #1
Renegade498
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian
Posts: 13

Rep: Reputation: 0
Machine Running Time


If I recall correctly there is a command you can type in the terminal that will tell the user how many the days the machine has been running for. What's the syntax for this command again?
 
Old 05-07-2005, 10:29 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
uptime

KC
 
Old 02-01-2006, 08:02 AM   #3
ayteebee
Member
 
Registered: Jul 2005
Location: Derbyshire
Distribution: Originally Suse 9.1 Professional, currently Knoppix 3.7, migrating to Slackware
Posts: 75

Rep: Reputation: 16
There are a few commands you can use, "uptime" gives basic information on how long the system has been up and the average load; "w" gives the same as "uptime" but also provides information on who is logged in and what they're doing (the w is for who); "cat /proc/uptime" shows how long the system has been running, in seconds.

Here's some examples of what they look like:

Code:
andy@linux> uptime
  1:55pm  up 21 days 20:49,  2 users,  load average: 0.50, 0.27, 0.21
Code:
andy@linux> w
 13:55:56 up 21 days, 20:49,  2 users,  load average: 0.46, 0.27, 0.21
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
andy     tty4      10Jan06 22:41   5.46s  0.07s vim
andy     :0        10Jan06 ?xdm?   2days  0.02s /bin/sh /opt/kde3/bin/startkde
Code:
andy@linux> cat /proc/uptime
1889367.47 1782617.72
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer correct time problem on my Suse 9.2 machine? Thanks suse2166 Linux - Hardware 7 04-23-2005 11:47 AM
Running Fedora on an Old Machine Don Cherry Fedora 2 02-08-2005 10:18 AM
How to have two gateways on the same linux machine at the same time deepalalla Linux - Networking 9 01-11-2005 04:51 AM
Mozilla and Firefox (on same machine, problems launching both at same time) jdier Linux - Newbie 3 05-13-2004 04:50 PM
set daily time limit for being logged into machine? JustinHoMi Linux - General 1 10-15-2001 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration