Halting with systemctl
Using a sudo systemctl halt
command halts the operating system, but it doesn't power down the computer. Because I can read your mind, I know that you're saying, But Donnie. Why would I want to halt the operating system but leave the computer running? Well, I don't know. That's something that I've never figured out in my entire Linux career.
But seriously, halt.target
works pretty much the same as poweroff.target
. So, I'll leave it to you to look at the associated unit files, if you really want to.
All right, let's reboot this discussion by talking about rebooting.