{"id":970,"date":"2018-10-19T18:56:18","date_gmt":"2018-10-19T18:56:18","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=970"},"modified":"2018-10-23T01:22:41","modified_gmt":"2018-10-23T01:22:41","slug":"how-long-server-has-been-up-in-linux-using-uptime-command","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/how-long-server-has-been-up-in-linux-using-uptime-command\/","title":{"rendered":"how long server has been up in linux using uptime command ?"},"content":{"rendered":"<p>Both Linux and Unix-like systems comes with various command to find out server uptime command. Under Linux file \/proc\/uptime has uptime information and file \/var\/run\/utmp has information about who is currently logged on. However, information from \/proc or utmp file is not directly readable by humans so you need to use the uptime command.<\/p>\n<p><b>uptime<\/b> &#8211; Tell how long the system has been running.<\/p>\n<p><b>UNIX \/ Linux uptime command<\/b><\/p>\n<p>Open a command-line terminal and then type the following commands:<\/p>\n<p>#uptime<\/p>\n<p>Sample outputs:<\/p>\n<p>uptime<\/p>\n<p>12:04:44 up 8 days, 19:42, 3 users, load average: 1.56, 2.56, 1.96<\/p>\n<p>Note: The uptime command gives a one line display of the following information.<\/p>\n<p>1). The current time<\/p>\n<p>2). How long the system has been running<\/p>\n<p>3). How many users are currently logged on<\/p>\n<p>4). The system load averages for the past 1, 5, and 15 minutes<\/p>\n<p>See uptime in pretty format pass the -p option to the uptime command<\/p>\n<p>#uptime -p<\/p>\n<p>Sample outputs:<\/p>\n<p>uptime -p<\/p>\n<p>up 1 week, 1 day, 19 hours, 47 minutes<\/p>\n<p>See uptime in system up since, in yyyy-mm-dd MM:HH:SS format pass the -s option to the uptime command<\/p>\n<p>#uptime -s<\/p>\n<p>uptime -s<br \/>\n2017-12-27 16:22:09<\/p>\n<p><a href=\"https:\/\/www.linuxforfreshers.com\/2018\/01\/how-long-server-has-been-up-in-linux.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Both Linux and Unix-like systems comes with various command to find out server uptime command. Under Linux file \/proc\/uptime has uptime information and file \/var\/run\/utmp has information about who is currently logged on. However, information from \/proc or utmp file is not directly readable by humans so you need to use the uptime command. uptime &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/how-long-server-has-been-up-in-linux-using-uptime-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;how long server has been up in linux using uptime command ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-970","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=970"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/970\/revisions"}],"predecessor-version":[{"id":1404,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/970\/revisions\/1404"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}