• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 615
  • Last Modified:

uptime command

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
798908.34
[(05:03 PM)][(root@dedicated)] [(~)] $ cat /proc/uptime | cut -d ' ' -f2
683182.48

Open in new window

0
XK8ER
Asked:
XK8ER
1 Solution
 
saurabhpendharkerCommented:
Hello,

You can either of following commands to see uptime:

1) uptime
2) w
0
 
XK8ERAuthor Commented:
those two commands are not showing what the linux machines shows
0
 
gheistCommented:
There is no documentation what linux machine shows either. Can you elaborate?
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now