{"id":2838,"date":"2019-11-27T02:28:55","date_gmt":"2019-11-27T02:28:55","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2838"},"modified":"2019-11-27T02:34:38","modified_gmt":"2019-11-27T02:34:38","slug":"find-system-uptime-in-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/find-system-uptime-in-linux\/","title":{"rendered":"Find system uptime in Linux"},"content":{"rendered":"\n<p>There are a few different ways to find out the system up time in Linux.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">cat \/proc\/uptime<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">admin@localhost [~]# cat \/proc\/uptime\n 306350.37 2218975.63\nadmin@localhost [~]#<\/pre>\n\n\n\n<p>Taking the above command one step further, we can run it in the date command to see the system start up date.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date  --date=\"cat \/proc\/uptime | awk '{print $1}'seconds ago\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">uptime command<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">[admin@localhost ~]$ uptime\n  6:25AM  up 2 days,  6:24, 3 users, load averages: 0.00, 0.00, 0.00\n[admin@localhost ~]$<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">w command<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">[admin@localhost ~]$ w\n  6:27AM  up 2 days,  6:25, 2 users, load averages: 0.00, 0.00, 0.00\n USER             TTY      FROM              LOGIN@  IDLE WHAT\n admin       p1       localhost.  6:09AM    13 su (bash)\n admin       p2       localhost.  6:25AM     - w\n[admin@localhost ~]$<\/pre>\n\n\n\n<p>Reference links<\/p>\n\n\n\n<p><a href=\"https:\/\/www.cyberciti.biz\/faq\/server-uptime-command-to-find-out-how-long-the-system-has-been-running\/\">https:\/\/www.cyberciti.biz\/faq\/server-uptime-command-to-find-out-how-long-the-system-has-been-running\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/sharadchhetri.com\/2013\/03\/18\/4-different-commands-to-find-system-uptime-in-linux\/\">https:\/\/sharadchhetri.com\/2013\/03\/18\/4-different-commands-to-find-system-uptime-in-linux\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a few different ways to find out the system up time in Linux. cat \/proc\/uptime admin@localhost [~]# cat \/proc\/uptime 306350.37 2218975.63 admin@localhost [~]# Taking the above command one step further, we can run it in the date command &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/find-system-uptime-in-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,820,821,469,819],"class_list":["post-2838","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-proc","tag-system","tag-uptime","tag-w"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2838"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2838\/revisions"}],"predecessor-version":[{"id":2841,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2838\/revisions\/2841"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}