{"id":63,"date":"2021-07-30T15:34:30","date_gmt":"2021-07-30T15:34:30","guid":{"rendered":"https:\/\/bestdedicatedhosting.in\/blog\/?p=63"},"modified":"2021-11-02T13:14:06","modified_gmt":"2021-11-02T13:14:06","slug":"linux-uptime-command-with-usage-examples","status":"publish","type":"post","link":"https:\/\/bestdedicatedhosting.in\/blog\/linux-uptime-command-with-usage-examples\/","title":{"rendered":"Linux Uptime Command With Usage Examples"},"content":{"rendered":"\n<p><strong>Description<\/strong><\/p>\n\n\n\n<p><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. <\/p>\n\n\n\n<p>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><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>It can also filter the information displayed at once depending on your specified options. <\/p>\n\n\n\n<p><strong>uptime<\/strong>&nbsp;uses a simple syntax: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uptime &#91;option]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Using Uptime<\/h3>\n\n\n\n<p>You can run the uptime command without any options like so: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># uptime<\/code><\/pre>\n\n\n\n<p>It will display an output similar to: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>09:10:19 up 106 days, 32 min, 2 users, load average: 0.22, 0.41, 0.32<\/code><\/pre>\n\n\n\n<p> In order of appearance, the command displays the&nbsp;<code>current time<\/code>&nbsp;as the 1st entry,&nbsp;<code>up<\/code>&nbsp;means that the system is running and it is displayed next to the total time for which the system has been running, the&nbsp;<code>user count<\/code>&nbsp;(number of logged on users), and lastly, the&nbsp;system load averages. <\/p>\n\n\n\n<p>To know more about&nbsp;<strong>uptime<\/strong>, check out our article:&nbsp;Understand Linux Load Averages and Monitor Performance of Linux<\/p>\n\n\n\n<p>Now let\u2019s see some useful&nbsp;<strong>uptime command<\/strong>&nbsp;usage with examples. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Check Linux Server Uptime<\/h4>\n\n\n\n<p>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\n\nup 58 minutes<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Check Linux Server Starting Time<\/h4>\n\n\n\n<p>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\n\n2019-05-06 11:49:17<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Uptime Version &amp; Help<\/h4>\n\n\n\n<p>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\n\nUsage:\n uptime &#91;options]\n\nOptions:\n -p, --pretty   show uptime in pretty format\n -h, --help     display this help and exit\n -s, --since    system up since\n -V, --version  output version information and exit\n\nFor more details see uptime(1).<\/code><\/pre>\n\n\n\n<p>You can now use&nbsp;<strong>uptime<\/strong>&nbsp;for your daily runs and you\u2019ll determine its level of usefulness to you. <\/p>\n\n\n\n<p><br>We hope you\u2019ve found this useful!&nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-linux"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":3,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestdedicatedhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}