• Vehicles • Fashion • Recipes • Blogs • Hunt • Travels • Sport • Fun • Handmade • IT • Education
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Commands To Shutdown And Reboot On Linux DistroTube

Commands To Shutdown And Reboot On Linux DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Commands To Shutdown And Reboot On Linux DistroTube In this video, I demonstrate a variety of different commands for shutdown and reboot on a Linux computer. Why would you need to know commands for shutdown and reboot when you could just hit the shutdown/reboot icons in your desktop environment? Well, sometimes you don't have the convenience of a graphical desktop environment
Date: 2022-03-30

Comments and reviews: 10


Hello DT and DT's community. I post here since I'm a bit afraid of doing it on the forums and getting the famous RTFM. Thanks to your help I was able to install Arch Linux succesfully. I'm using your dotfiles too, as a newbie myself they've proven quite helpful. My problem consists on not being able to get the tux icon output on Xmobar, I've doubled checked to see if the dependencies were correctly installed. It currently displays -Updating...-. I would appreciate any pointers and I'm sorry for posting here as opposed to other website. I would like to thank you for all the knowledge and content you share with us !
reply

You don't need to hold SysReq for the REISUB sequence, only Alt. In a text terminal, you can use H (for -help-) to print the SysReq commands available.
In some cases, shutting down a service causes it to write data to another service; the kernel doesn't know the order to shut them down with a TERM signal. So it's worth noting, the SysReq menu is a cool party trick, but it might end up breaking cache files and databases. The RPM package manager is notorious for its DB corruption bugs, don't ever try REISUB while RPM is installing or uninstalling things, unless you're prepared for a manual RPM DB repair.

reply

I know it doesn't really matter and your _systemctl start __reboot.target_ most likely will work.
(I right now can't try it myself because I only have my smartphone in reach, and 2nd don't know it by heart because that's not the way I reboot hosts, not even systemd controlled ones)
I think the -intended- way (by Poettering?) was to _isolate_ target units.
Owe to laziness my preferred method of rebooting a host is to simply issue _reboot_ .

reply

You missed -poweroff-. It's more likely to be what you want than -halt- in most circumstances (It is the same as -reboot -p- though). Also, the sysrq method is actually a slightly more graceful shutdown than just hitting the power button. It at least tries to flush writes to disk and unmount filesystems before shutdown, so if you can remember it, it's worth doing even if you have access to the power button.
reply

I used to have the windows shutdown command camouflaged as a map called 'private' on my windows desktop -shutdown -r -t 10 -c -You had to click my private map, didn't you-
People turned red when I came back from the toilet. :)
Is it possible to start up a linux machine at a certain hour, not from the BIOS/UEFI? Sorry for my bad English.

reply

I miss the TTY screen you can get with CTRL+ALT+FX where X is the number of the F-key. I think between F1-F7 or so are all indipendent TTY screens.
If my system is unresponsive, I usually go to a TTY and login and then reboot there. Not sure if that is a good way, but probably better than Sysrq. Imagine you do a wrong Sysrq command...

reply

[sudo] shutdown -r now
or ...
[sudo] shutdown -h now
-r reboots the system
-h halts, shuts down and switches off the power. Why do we need anything more complicated than that?
Nobody except root should be allowed to do this anyway.

reply

-reboot- and -poweroff- for me. For the distros that I've been messing with lately for immediate shutdown the command is -shutdown -P now-. However you can save yourself some typing by issuing a -poweroff- command instead. Convenient.
reply

If you're using other init systems than systemd, assuming you are in the wheel group and
# chown root:wheel /sbin/halt
# chmod 4750 /sbin/halt
So you can now run halt as normal user. Same operations can be made for reboot.

reply

shutdown's delay and message are useful for telling other users the system is going down to give them time to clean up, save work, etc. Linux is not a single user OS even if it is frequently used by a single user.
reply
Add a review, comment






Other channel videos