On Wed, Feb 25, 2026 at 03:42:44PM -0600, Roger Heflin wrote:
On Mon, Feb 23, 2026 at 7:43 PM Dave Close <[email protected]> wrote:

systemctl when called as the name "reboot", tells systemd to reboot
the system (execute the systemd reboot.target, and shutdown all
services and reboot when done).

This is STANDARD arg[0] processing that has been used in Unix/Linux
forever (>35 years) that is why it is not really documented as
anything special because it is not.  Lots of commands act this same
way (lvm with all of its links is exactly the same, the man page for
the specific command you invoked it as matters).  Based on the name it
is called as arguments may not be needed at all, or completely
different arguments may be required.


Indeed, in my early UNIX days ln, mv, and cp were a single hard-linked
command whose action varied with the name used to start it.

I use the same trick for a simple script.  Sometimes the backspace
key results in a <ctrl>H and sometimes the ascii DEL character <ctrl>?.

If I see the backspace key is not deleting characters at the next
shell prompt I press the backspace key and hit return.  It runs
a linked script in my ~/bin.

  $ ls ~/bin/?
  -rwxr-xr-x. 2 jon jon  16 May 27  2020 /home/jon/bin/
  -rwxr-xr-x. 2 jon jon  16 May 27  2020 /home/jon/bin/

The script is simply

  stty erase "$0"
--
Jon H. LaBadie                  [email protected]
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to