Linked Questions

58
votes
1answer
65k views

What's the difference between poweroff and halt? [duplicate]

To turn off my system, I can use one of these three commands: sudo halt Or: sudo poweroff Or: sudo shutdown -h now What are the differences between these commands, or are they all just aliases ...
9
votes
1answer
7k views

Why does halt not turn the machine off? [duplicate]

shutdown now kills everything and then powers down the machine. halt kills everything and then... there is no step 2. It will sit, running but not doing anything, until people stop arguing over ...
78
votes
3answers
29k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
44
votes
5answers
13k views

What exactly does init do?

I am creating a linux distro and now I need an init program. I can code in c really well and I know quite a bit about linux (not much but I've been using arch linux for development for 4 years), so I ...
15
votes
2answers
33k views

Is halt the same as “shutdown -H” and poweroff the same as “shutdown -P”?

I haven't found a clear answer to the differences between the two options to the command shutdown. Is halt the same as shutdown -H and poweroff the same as shutdown -P?
12
votes
3answers
808 views

Why do we need the reboot function in different binaries?

Why do we need the reboot function in different binaries? shutdown -r and reboot Or do they differ in something?
10
votes
4answers
4k views

How do I shutdown, reboot and logout the system from the command-line?

I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware). And: What is the difference between Halt ...
0
votes
1answer
16k views

Shutdown does not power off. Why? [closed]

I am running Ubuntu 16.04 LTS and I am having problems shutting down and restarting the computer. I trigger a shutdown, the computer eventually says Reached target shutdown and halts. It does not ...
2
votes
2answers
2k views

Debian 9 halt does not really power off in new versions - why?

IMPORTANT: I am able to restore halt old behavior if I do: apt install sysvinit-core Plus: Old Red Hat based versions are able to power off with halt too. I am trying to understand why in Debian ...
5
votes
1answer
2k views

Is the `reboot` command safe to use?

The reboot command appears to work differently depending on the distribution. For example on Ubuntu/Debian and CentOS it shuts down services first while on Arch Linux it reboots immediately (at least ...
2
votes
3answers
3k views

When to use reboot(2) vs reboot(8)

I'm writing a custom reboot program in C and trying to decide if I should use reboot(2) directly or call system("/sbin/reboot"). Both reboot(8) and init 6 change the runlevel and gracefully shut down ...
2
votes
2answers
2k views

Systemd: how to shut down without actually shutting down

I'm setting up an embedded device running Debian Jessie to shut down when a UPS experiences a power failure. Unfortunately, the device's bootloader restarts the OS whenever it quits, so shutdown/halt ...
0
votes
1answer
1k views

Difference between reboot -p and reboot

I understand that -p stands for power off. The man page says: -p, --poweroff Power-off the machine, regardless of which one of the three commands is invoked. But exactly what does it ...
1
vote
1answer
944 views

How can I ensure a complete system shutdown on FreeNAS/FreeBSD?

upsmon is configured to automatically shutdown the system upon power failure. However, the shutdown seems to fail halfway, leaving me without remote access to the system: Feb 2 12:21:54 the_host ...
1
vote
1answer
933 views

is there any difference between /usr/bin/poweroff and /usr/bin/shutdown? [duplicate]

I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run. so is there any difference between /usr/bin/poweroff and /usr/...

15 30 50 per page