systemctl --all
systemctl list-dependencies
systemctl list-dependencies libvirtd --all
systemctl status [___.service]
systemctl | grep ssh
systemctl --failed
systemctl daemon-reload # scanning for new or changed units
systemctl enable unit # start on boot
systemctl mask unit # make it impossible to start
sudo systemd-analyze plot > /tmp/systemd-startup.svg
fbi /tmp/systemd-startup.svg
Units
.service: default
name@string.service: instances of a template unit, actually 'instance_identifier@.service
.mount, E.g.: /home is equivalent to home.mount
.device, E.g.: /dev/sda2 is equivalent to dev-sda2.device
# when running in system mode (--system)
ls -l /run/systemd/system # Runtime units
ls -l /usr/lib/systemd/system # Units of installed packages
ls -l /etc/systemd/system # Local configuration, by SA
ls /etc/systemd/network # local administration network directory
ls /usr/lib/systemd/network # system network directory
ls /run/systemd/network # volatile runtime network directory
`/run` is temporary and `/usr/lib` is for vendors
symlink with the same name pointing to `/dev/null` disables the configuration file entirely
Kind
`bridge` A bridge device is a software switch, and each of its slave devices and the bridge itself are ports of the switch.
`tap` A persistent Level 2 tunnel between a network device and a device node.
`tun` A persistent Level 3 tunnel between a network device and a device node.
`veth` An Ethernet tunnel between a pair of network devices.
`sit` An IPv6 over IPv4 tunnel.
`vti` An IPv4 over IPSec tunnel.
[Match]
Name=enp2s0
[Network]
Bridge=bridge0
[BridgeVLAN]
VLAN=1-32
PVID=42
EgressUntagged=42
[BridgeVLAN]
VLAN=100-200
[BridgeVLAN]
EgressUntagged=300-400
VLAN=
The VLAN ID allowed on the port.
EgressUntagged=
The VLAN ID specified here will be used to untag frames on egress.
Configuring EgressUntagged= implicates the use of VLAN= above and will enable the VLAN ID for ingress as well.
PVID=
The Port VLAN ID specified here is assigned to all untagged frames at ingress. PVID= can be used only once.
Configuring PVID= implicates the use of VLAN= above and will enable the VLAN ID for ingress as well.
Network link configuration is performed by the net_setup_link udev builtin.
udev (userspace /dev) is a device manager for the Linux kernel. As the successor of devfsd and hotplug, udev primarily manages device nodes in the /dev directory.