Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How it works...

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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content