 Hey guys, welcome back to my YouTube channel. This is Daniel Rosel here. Quick video for the Ubuntu fans in the house on how to schedule a shutdown of your operating system at a certain time. I tried to avoid duplicating videos already on YouTube, but I did search this and I was like, some of these videos are 15 minutes long and it's just not that complicated. So I'm going to just make this super, super quick. I always forget this command, but it's really simple. It's sudo. This is on Ubuntu Linux and this will work. I use it all the time. sudo shutdown minus capital P plus and then the number of minutes that you want to shut down. So use case. I'm currently working on a data archive project in which I'm burning things that are called M disks from my NAS over to this M disk stuff. And it's about probably one, two in the morning here and I kind of want to go to bed. So I'd rather not leave my computer running throughout the night, which is going to just waste power and bad for the environment, whatever. So I can see this guy has got about three hours. Oh my goodness, to run. So what I'm going to do is schedule a shutdown for four hours from now. So you guys are going to get to see how this works in action. So I type in sudo shutdown minus P and then four hours, 60 minutes in an hour, 60 times four is 240, 240. And then click on the, ah, sorry, you need a positive sign there to get that integer. And then click the return key. And I now get a message saying that shutdown has been scheduled for Monday, 2022, 06, 06 at 6.15 in the morning and 44 seconds on IDT. And just cross-checking with my current time, which is at 2.15. I find that to be accurate. That's four hours from now at six in the morning, my local time. After I finished burning this delightful disk, the amount to machine is going to shut itself down and thereby conserve power. So that's it guys. That's how you do a schedule shutdown on Ubuntu or it's one way. There's probably a bunch of other ways, crontab, et cetera, but I do this irregularly enough that I just remember this command. One last time, sudo shutdown minus capital P plus sign and then the number of minutes into the future, at which point you want to trigger an automatic shutdown. Thanks for watching. More videos coming soon.