December 2018
Beginner
826 pages
22h 54m
English
We are again querying systemd using systemctl, only this time instead of printing running services, we're getting everything that the init system is aware of.
Service files, and indeed all other types of unit file, generally exist in /usr/lib/systemd/system. From this location, files are symlinked into the runlevel directories at /etc/systemd/system/.
As seen in the following, we're going to ls this directory:
$ ls -la /etc/systemd/systemtotal 8drwxr-xr-x. 13 root root 4096 May 12 2018 .drwxr-xr-x. 4 root root 151 May 12 2018 ..drwxr-xr-x. 2 root root 32 May 12 2018 basic.target.wantslrwxrwxrwx. 1 root root 46 May 12 2018 dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.servicelrwxrwxrwx. ...