{"id":721,"date":"2015-11-03T19:17:00","date_gmt":"2015-11-03T19:17:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=721"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"one-time-reboot-of-linux-ubuntu","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=721","title":{"rendered":"One time reboot of Linux (Ubuntu)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you occasionally need to reboot a Linux box as a one off one evening you can perform the following commands using the <strong>at <\/strong>command. Note if you set a time that has just past it will perform the reboot the following day. So lets say its 16:15 and you want to schedule a reboot at 21:00 that evening, to do this you can do run these commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># at 21:00<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">at&gt; shutdown -r now<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hit Ctrl + D<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll now see its been created:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">job 1 at Tue Nov 3 21:00:00 2015<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check on any at commands that are scheduled you can run:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># atq<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1 Tue Nov 3 21:00:00 2015 a root<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you occasionally need to reboot a Linux box as a one off one evening you can perform the following commands using the at command. Note if you set a time that has just past it will perform the reboot the following day. So lets say its 16:15 and you want to schedule a reboot &#8230; <a title=\"One time reboot of Linux (Ubuntu)\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=721\" aria-label=\"Read more about One time reboot of Linux (Ubuntu)\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-721","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=721"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions"}],"predecessor-version":[{"id":1418,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions\/1418"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}