News for hackers. Stuff that matters.
Re:Systemd: The Good Parts by azornathogron on Sunday May 16, 2021 @04:00PM (#27176542)
It is at least built in a logical way and once you understand that logic then related commands will be discoverable.

`systemctl` is the systemd command line tool for inspecting and manipulating services/units. `systemctl status` is the command for showing the status of a service or unit.

The `--` part is not specific to systemd at all, it's used in many commands to separate flags from positional arguments. This lets you use positional arguments that might happen to start with a dash without them being interpreted as flags. [1].

systemd manages mounts, they're named according to the mount point, with a transformation to turn it into a filename (mostly converting slashes to dashes, plus a .mount suffix). Hence, the root mount ('/') is named '-.mount'.

[1] See, e.g., https://unix.stackexchange.com/questions/11376/what-does-dou...

Re:Systemd: The Good Parts by unilynx on Sunday May 16, 2021 @04:13PM (#27176649)
The annoying part is that now that '-' stands for '/', you need to use '\x2d' for '-'. Which is pretty annoying when manipulating mount names during the shell.

I wish they had picked ':' for '/' instead of '-'. That one would be pretty uncommon to find in a mount path, and has a bit of precedent on OSX.

(Who would ever mount anything on a path with a colon anyway? That would be as silly as using slashes instead of dashes for options)

Re:Systemd: The Good Parts by isodude on Monday May 17, 2021 @12:58PM (#27185602)
Re:Systemd: The Good Parts by salawat on Sunday May 16, 2021 @05:16PM (#27177067)
C:\ much?
Re:Systemd: The Good Parts by unilynx on Monday May 17, 2021 @10:56AM (#27184165)
I’m pretty sure whoever came up with that was also using slashes for options. Someone was gonna bite :)