Find the answer to your Linux question:
Results 1 to 2 of 2
Is there any way to record total uptime--like an addition of all session uptimes? Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,981

    total uptime?

    Is there any way to record total uptime--like an addition of all session uptimes? Thanks

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,615
    Use uptime to get the time that the machine was up.
    You can 'man uptime' to see the man page.
    If you want to track this try something like this

    uptime > time-alive

    This will redirect the output to a file called time-alive in the current directory

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •