uptime command

Posted on 2008-11-18
Last Modified: 2013-11-22
hello there,
I would like to know how can I show the uptime on freebsd just like linux
[(05:02 PM)][(root@dedicated)] [(~)] $ cat /proc/uptime

798908.27 683182.34

[(05:03 PM)][(root@dedicated)] [(~)] $ cat /proc/uptime | cut -d ' ' -f1


[(05:03 PM)][(root@dedicated)] [(~)] $ cat /proc/uptime | cut -d ' ' -f2


Open in new window

Question by:XK8ER
    LVL 3

    Accepted Solution


    You can either of following commands to see uptime:

    1) uptime
    2) w
    LVL 1

    Author Comment

    those two commands are not showing what the linux machines shows
    LVL 61

    Expert Comment

    There is no documentation what linux machine shows either. Can you elaborate?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now