{"id":103,"date":"2021-08-16T04:47:13","date_gmt":"2021-08-16T04:47:13","guid":{"rendered":"http:\/\/webhostingpune.co.in\/blog\/?p=103"},"modified":"2021-08-16T04:49:38","modified_gmt":"2021-08-16T04:49:38","slug":"linux-uptime-command","status":"publish","type":"post","link":"https:\/\/webhostingpune.co.in\/blog\/linux-uptime-command\/","title":{"rendered":"Linux Uptime Command"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>The Linux Operating System<\/strong>&nbsp;is filled with several commands which any aspiring Linux expert or power user e.g. system admin must have a good grasp of. One of such commands is&nbsp;<code>uptime<\/code>&nbsp;and today, I\u2019ll briefly discuss its purpose and syntax.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Uptime<\/strong>&nbsp;is a command that returns information about how long your system has been running together with the&nbsp;<strong>current time<\/strong>,&nbsp;<strong>number of users with running sessions<\/strong>, and&nbsp;<strong>the system load averages<\/strong>&nbsp;for the past&nbsp;<strong>1<\/strong>,&nbsp;<strong>5<\/strong>, and&nbsp;<strong>15<\/strong>&nbsp;minutes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>uptime<\/strong>&nbsp;uses a simple syntax:<\/p>\n\n\n\n<h2 class=\"has-luminous-vivid-amber-color has-text-color wp-block-heading\">Using Uptime<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can run the uptime command without any options<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uptime<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"74\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime.png\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime.png 957w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime-300x23.png 300w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime-768x59.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> Let\u2019s see some useful&nbsp;<strong>uptime command<\/strong>&nbsp;usage with examples.<\/p>\n\n\n\n<h2 class=\"has-luminous-vivid-amber-color has-text-color wp-block-heading\">Check Linux Server Uptime<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can filter uptime\u2019s result to show only the running time of the system with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uptime -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime1.png\" alt=\"\" class=\"wp-image-105\" width=\"840\" height=\"130\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime1.png 547w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime1-300x47.png 300w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n\n\n\n<h2 class=\"has-luminous-vivid-amber-color has-text-color wp-block-heading\">Check Linux Server Starting Time<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using option&nbsp;<code>-s<\/code>&nbsp;will display the date\/time since when the system has been running.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uptime -s<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime2.png\" alt=\"\" class=\"wp-image-106\" width=\"838\" height=\"125\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime2.png 535w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime2-300x45.png 300w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/figure>\n\n\n\n<h2 class=\"has-luminous-vivid-amber-color has-text-color wp-block-heading\">Uptime Version &amp; Help<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As it is with most command line apps, you can display uptime\u2019s version information and quick help page with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uptime -h<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"894\" height=\"293\" src=\"http:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime3.png\" alt=\"\" class=\"wp-image-107\" srcset=\"https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime3.png 894w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime3-300x98.png 300w, https:\/\/webhostingpune.co.in\/blog\/wp-content\/uploads\/2021\/08\/uptime3-768x252.png 768w\" sizes=\"auto, (max-width: 894px) 100vw, 894px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These are the command which we use&nbsp;<strong>uptime<\/strong>&nbsp;for your daily runs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>We hope you\u2019ve found this useful!&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Linux Operating System&nbsp;is filled with several commands which any aspiring Linux expert or power user e.g. system admin must have a good grasp of. One of such commands is&nbsp;uptime&nbsp;and today, I\u2019ll briefly discuss its purpose and syntax. Uptime&nbsp;is a command that returns information about how long your system has been running together with the&nbsp;current time,&nbsp;number of users with running sessions, and&nbsp;the system load averages&nbsp;for the past&nbsp;1,&nbsp;5, and&nbsp;15&nbsp;minutes. uptime&nbsp;uses a simple syntax: Using Uptime You can run the uptime command without any options Output: Let\u2019s see some useful&nbsp;uptime command&nbsp;usage with examples. Check Linux Server Uptime You can filter uptime\u2019s result to show only the running time of the system with the command: Output: Check Linux Server Starting Time Using option&nbsp;-s&nbsp;will display the date\/time since when the system has been running. Uptime Version &amp; Help As it is with most command line apps, you can display uptime\u2019s version information and quick help page with the following command. These are the command which we use&nbsp;uptime&nbsp;for your daily runs. We hope you\u2019ve found this useful!&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":2,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/posts\/103\/revisions\/109"}],"wp:attachment":[{"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingpune.co.in\/blog\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}