It's probably the most used command for operating system shutdown.
Linux: shutdown (flags such as -h)
OpenVMS: shutdown FreeDOS: shutdown Solaris 9: shutdown (flags such as
-y -g 30)
Windows 10: shutdown (flags such as /p)
Minix3: shutdown (can't remember the flags right now)
TOPS20: ^Ecease now (then confirm)
ITS: :lock (then 5down, confirm)
I can recall vividly the first time that I fired up a GNU/Linux
system. It was from a Mandrake CD back in 1998.
It worked, but I was puzzled about how I should shut it
down. A search of the paper manual that came with the
CD revealed the answer:
shutdown -h now
Well, over the years I have become a veritable GNU/Linux
master that has rolled his own distro but, to this day,
I still shut it all down with:
shutdown -h now
That's what I like. If it works it will work forever.
There is no need for change for the sake of change.
But I do occasionally boot into a GNU/Linux live DVD/USB
for certain purposes and the dominance of the GUI/DE
has obliterated the need for that simple command.
I feel so sorry for the distro lackey.
I know that underneath all that GUI/DE glitz there still
remains:
shutdown -h now
Note: the "shutdown" command belongs the package "sysvinit"
and probably has been replaced within the junk Systemd that
has grabbed the balls of most, but not all (and certainly
not mine), GNU/Linux distros.
As I said, I feel very sorry for the helpless distro lackey.
I usually use the -f flag with -r or -h:
# shutdown -hf now now now
Which produced the following on logged-in terminals:
I can recall vividly the first time that I fired up a GNU/Linux
system. It was from a Mandrake CD back in 1998.
It worked, but I was puzzled about how I should shut it
down. A search of the paper manual that came with the
CD revealed the answer:
shutdown -h now
Well, over the years I have become a veritable GNU/Linux
master that has rolled his own distro but, to this day,
I still shut it all down with:
shutdown -h now
That's what I like. If it works it will work forever.
There is no need for change for the sake of change.
But I do occasionally boot into a GNU/Linux live DVD/USB
for certain purposes and the dominance of the GUI/DE
has obliterated the need for that simple command.
I feel so sorry for the distro lackey.
I know that underneath all that GUI/DE glitz there still
remains:
shutdown -h now
Note: the "shutdown" command belongs the package "sysvinit"
and probably has been replaced within the junk Systemd that
has grabbed the balls of most, but not all (and certainly
not mine), GNU/Linux distros.
As I said, I feel very sorry for the helpless distro lackey.
On Wed, 16 Apr 2025 22:23:27 +0000, vallor wrote:
I usually use the -f flag with -r or -h:You actually have other people logged in to your personal machine???
# shutdown -hf now now now
Which produced the following on logged-in terminals:
You probably also don't run as root on your own personal machine.
Change for the sake of change is silly.
On Thu, 17 Apr 2025 10:49:13 -0000 (UTC), Borax Man wrote:
Change for the sake of change is silly.
Never seen that happen in the Linux world, that I can recall. Nobody is
able to push their ideas onto the community without the latter’s
consent.
On Thu, 17 Apr 2025 10:49:13 -0000 (UTC), Borax Man wrote:
Change for the sake of change is silly.
Never seen that happen in the Linux world, that I can recall. Nobody is
able to push their ideas onto the community without the latter’s consent.
Note: the "shutdown" command belongs the package "sysvinit"
and probably has been replaced within the junk Systemd that
has grabbed the balls of most, but not all (and certainly
not mine), GNU/Linux distros.
Farley Flud <ff@linux.rocks> wrote:
Note: the "shutdown" command belongs the package "sysvinit"
and probably has been replaced within the junk Systemd that has grabbed
the balls of most, but not all (and certainly not mine), GNU/Linux
distros.
Surprisingly, in Debian the shutdown binary is in the systemd-sysv
package and will thus vanish as soon as we¹ eventually get rid of the
last init script, but I am pretty sure that shutdown nowadays just
issues a command to systemd like the appropriate systemctl reboot or systemctl halt.
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown, so one has to do an arcane construct involving systemd-run and
a transient unit to achive that, but that's just the way things are. Not everything around systemd is good.
That being said, don't feed the troll any more.
Greetings Marc
¹ Debian
On Wed, 16 Apr 2025 14:09:37 -0400, jayjwa <jayjwa@atr2.ath.cx.invalid>
wrote in <8734e8nfku.fsf@atr2.ath.cx>:
It's probably the most used command for operating system shutdown.
Linux: shutdown (flags such as -h)
OpenVMS: shutdown FreeDOS: shutdown Solaris 9: shutdown (flags such as
-y -g 30)
Windows 10: shutdown (flags such as /p)
Minix3: shutdown (can't remember the flags right now)
TOPS20: ^Ecease now (then confirm)
ITS: :lock (then 5down, confirm)
I usually use the -f flag with -r or -h:
# shutdown -hf now now now
<snip>
vallor wrote this post while blinking in Morse code:
On Wed, 16 Apr 2025 14:09:37 -0400, jayjwa <jayjwa@atr2.ath.cx.invalid>
wrote in <8734e8nfku.fsf@atr2.ath.cx>:
It's probably the most used command for operating system shutdown.
Linux: shutdown (flags such as -h)
OpenVMS: shutdown FreeDOS: shutdown Solaris 9: shutdown (flags such as
-y -g 30)
Windows 10: shutdown (flags such as /p)
Minix3: shutdown (can't remember the flags right now)
TOPS20: ^Ecease now (then confirm)
ITS: :lock (then 5down, confirm)
I usually use the -f flag with -r or -h:
# shutdown -hf now now now
<snip>
POWEROFF(8) poweroff POWEROFF(8)
NAME
poweroff, reboot, halt - Power off, reboot, or halt the machine SYNOPSIS
poweroff [OPTIONS...]
reboot [OPTIONS...]
halt [OPTIONS...]
Farley Flud <ff@linux.rocks> wrote:
Note: the "shutdown" command belongs the package "sysvinit"
and probably has been replaced within the junk Systemd that
has grabbed the balls of most, but not all (and certainly
not mine), GNU/Linux distros.
Surprisingly, in Debian the shutdown binary is in the systemd-sysv
package and will thus vanish as soon as we¹ eventually get rid of the
last init script, but I am pretty sure that shutdown nowadays just
issues a command to systemd like the appropriate systemctl reboot or systemctl halt.
Surprisingly, in Debian the shutdown binary is in the systemd-sysv
package and will thus vanish as soon as we¹ eventually get rid of the
last init script, but I am pretty sure that shutdown nowadays just
issues a command to systemd like the appropriate systemctl reboot or systemctl halt.
The "one size fits all" GUI that Windows and Ubuntu was trying to push
on their customers was stupid. A smartphone and a tablet are used
differently than a desktop or laptop. I remember seeing the ads for
Windows 8 where a person is sitting at a desk, keyboard and mouse in
front of him or her and, instead of using the mouse (or keyboard) they awkwardly reach across the desk and tap the screen. With the Windows
tablets their ads were showing off add-on membrane keyboards.
(Maybe Surface computers still run on ARM CPUs, I don't know and don't
really care.)
On Fri, 18 Apr 2025 21:07:41 -0000 (UTC), RonB wrote:
The "one size fits all" GUI that Windows and Ubuntu was trying to push
on their customers was stupid. A smartphone and a tablet are used
differently than a desktop or laptop. I remember seeing the ads for
Windows 8 where a person is sitting at a desk, keyboard and mouse in
front of him or her and, instead of using the mouse (or keyboard) they
awkwardly reach across the desk and tap the screen. With the Windows
tablets their ads were showing off add-on membrane keyboards.
https://www.microsoft.com/en-us/store/collections/surfacekeyboard? icid=Surface_Acc_Cat_R1CP2_ProflexKeyboard
Oh, you wanted a keyboard with that? Here's a nice one for $399.99.
Surprisingly, in Debian the shutdown binary is in the systemd-sysv
package and will thus vanish as soon as we¹ eventually get rid of the
last init script, but I am pretty sure that shutdown nowadays just
issues a command to systemd like the appropriate systemctl reboot or systemctl halt.
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown, so one has to do an arcane construct involving systemd-run and
a transient unit to achive that, but that's just the way things are. Not everything around systemd is good.
So ... nothing but a symlink. But doesn’t it fully support the usual shutdown options, including delay?
On 2025-04-18, rbowman <bowman@montana.com> wrote:
On Fri, 18 Apr 2025 02:50:33 -0000 (UTC), Lawrence D'Oliveiro wrote:
On Thu, 17 Apr 2025 10:49:13 -0000 (UTC), Borax Man wrote:
Change for the sake of change is silly.
Never seen that happen in the Linux world, that I can recall. Nobody is
able to push their ideas onto the community without the latter’s
consent.
When Canonical introduced the Unity desktop a good portion of the
community defected to other distros. Given the timing it looked
suspiciously like Metro envy.
The "one size fits all" GUI that Windows and Ubuntu was trying to push on their customers was stupid. A smartphone and a tablet are used differently than a desktop or laptop. I remember seeing the ads for Windows 8 where a person is sitting at a desk, keyboard and mouse in front of him or her and, instead of using the mouse (or keyboard) they awkwardly reach across the
desk and tap the screen. With the Windows tablets their ads were showing off add-on membrane keyboards.
https://www.youtube.com/watch?v=des3dpKtfIM
On Fri, 18 Apr 2025 12:27:25 +0200, Marc Haber wrote:
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown ...
systemctl halt|reboot --when=«timespec»
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown ...
On Tue, 22 Apr 2025 02:02:02 -0000 (UTC), Lawrence D'Oliveiro
<ldo@nz.invalid> wrote in <vu6tap$3ffqa$1@dont-email.me>:
On Fri, 18 Apr 2025 12:27:25 +0200, Marc Haber wrote:
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown ...
systemctl halt|reboot --when=«timespec»
A proper shutdown(8) command was added in systemd 252.
I haven't tried a timed shutdown with it yet, I've only used "now".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:27:51 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,528 |