Skip to content

Instantly share code, notes, and snippets.

@rusty-snake
Created December 21, 2019 16:55
Show Gist options
  • Select an option

  • Save rusty-snake/e0d89f6b87521fe63bc47cb813d9405f to your computer and use it in GitHub Desktop.

Select an option

Save rusty-snake/e0d89f6b87521fe63bc47cb813d9405f to your computer and use it in GitHub Desktop.
systemd commands

systemd commands

systemd

CMD DESC
busctl Introspect the bus.
coredumpctl List or retrieve coredumps from the journal.
hostnamectl Query or change system hostname.
journalctl Query the journal.
loginctl Send control commands to or query the login manager.
networkctl Query and control the networking subsystem.
portablectl Attach or detach portable services from the local system.
resolvectl Send control commands to the network name resolution manager, or resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.
systemctl Query or send control commands to the systemd manager.
systemd-analyze Profile systemd, show unit dependencies, check unit files.
systemd-ask-password Query the user for a system passphrase, via the TTY or an UI agent.
systemd-cat Execute process with stdout/stderr connected to the journal.
systemd-cgls Recursively show control group contents.
systemd-cgtop Show top control groups by their resource usage.
systemd-delta Find overridden configuration files.
systemd-detect-virt Detect execution in a virtualized environment.
systemd-escape Escape strings for usage in systemd unit names.
systemd-firstboot Configures basic settings of the system.
systemd-id128 Generate and print id128 strings.
systemd-inhibit Execute a process while inhibiting shutdown/sleep/idle.
systemd-machine-id-setup Initialize /etc/machine-id from a random source.
systemd-mount Establish a mount or auto-mount point transiently.
systemd-notify Notify the init system about service status updates.
systemd-path Show system and user paths.
systemd-resolve Resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.
systemd-run Run the specified command in a transient scope or service.
systemd-socket-activate Listen on sockets and launch child on connection.
systemd-stdio-bridge STDIO or socket-activatable proxy to a given DBus endpoint.
systemd-sysusers Creates system user accounts.
systemd-tmpfiles Creates, deletes and cleans up volatile and temporary files and directories.
systemd-tty-ask-password-agent Process system password requests.
systemd-umount Establish a mount or auto-mount point transiently.
timedatectl Query or change system time and date settings.
/usr/lib/systemd/system-generators/systemd-bless-boot-generator
/usr/lib/systemd/system-generators/systemd-debug-generator
/usr/lib/systemd/system-generators/systemd-fstab-generator
/usr/lib/systemd/system-generators/systemd-getty-generator
/usr/lib/systemd/system-generators/systemd-rc-local-generator
/usr/lib/systemd/system-generators/systemd-run-generator
/usr/lib/systemd/system-generators/systemd-system-update-generator
/usr/lib/systemd/system-generators/systemd-sysv-generator
/usr/lib/systemd/system-generators/systemd-veritysetup-generator
/usr/lib/systemd/systemd Starts up and maintains the system or user services.
/usr/lib/systemd/systemd-ac-power Report whether we are connected to an external power source.
/usr/lib/systemd/systemd-binfmt Registers binary formats with the kernel.
/usr/lib/systemd/systemd-bless-boot Mark the boot process as good or bad.
/usr/lib/systemd/systemd-boot-check-no-failures Verify system operational state.
/usr/lib/systemd/systemd-cgroups-agent
/usr/lib/systemd/systemd-coredump
/usr/lib/systemd/systemd-dissect Dissect a file system OS image.
/usr/lib/systemd/systemd-export Export container or virtual machine images.
/usr/lib/systemd/systemd-fsck
/usr/lib/systemd/systemd-hostnamed
/usr/lib/systemd/systemd-initctl
/usr/lib/systemd/systemd-journald
/usr/lib/systemd/systemd-localed
/usr/lib/systemd/systemd-logind
/usr/lib/systemd/systemd-networkd
/usr/lib/systemd/systemd-networkd-wait-online Block until network is configured.
/usr/lib/systemd/systemd-portabled
/usr/lib/systemd/systemd-reply-password
/usr/lib/systemd/systemd-resolved
/usr/lib/systemd/systemd-shutdown
/usr/lib/systemd/systemd-socket-proxyd Bidirectionally proxy local sockets to another (possibly remote) socket.
/usr/lib/systemd/systemd-sulogin-shell
/usr/lib/systemd/systemd-sysctl Applies kernel sysctl settings.
/usr/lib/systemd/systemd-time-wait-sync
/usr/lib/systemd/systemd-timedated
/usr/lib/systemd/systemd-update-done
/usr/lib/systemd/systemd-update-utmp
/usr/lib/systemd/systemd-user-runtime-dir
/usr/lib/systemd/systemd-user-sessions
/usr/lib/systemd/systemd-veritysetup
/usr/lib/systemd/systemd-volatile-root
halt Halt the system.
init Send control commands to the init daemon.
poweroff Power off the system.
reboot Reboot the system.
resolvconf Register DNS server and domain configuration with systemd-resolved.
runlevel Prints the previous and current runlevel of the init system.
shutdown Shut down the system.
telinit Send control commands to the init daemon.

systemd-udev

CMD DESC
bootctl Install, update or remove the systemd-boot EFI boot manager.
kernel-install
systemd-hwdb Update or query the hardware database.
udevadm Send control commands or test the device manager.
/usr/lib/systemd/systemd-backlight
/usr/lib/systemd/systemd-cryptsetup
/usr/lib/systemd/systemd-growfs Grow filesystem or encrypted payload to device size.
/usr/lib/systemd/systemd-hibernate-resume
/usr/lib/systemd/systemd-makefs
/usr/lib/systemd/systemd-modules-load Loads statically configured kernel modules.
/usr/lib/systemd/systemd-quotacheck
/usr/lib/systemd/systemd-random-seed
/usr/lib/systemd/systemd-remount-fs
/usr/lib/systemd/systemd-rfkill
/usr/lib/systemd/systemd-sleep Suspend the system, hibernate the system, or both.
/usr/lib/systemd/systemd-timesyncd
/usr/lib/systemd/systemd-udevd Manages devices.
/usr/lib/systemd/systemd-vconsole-setup

systemd-container

CMD DESC
machinectl Send control commands to or query the virtual machine and container registration manager.
systemd-nspawn Spawn a command or OS in a light-weight container.
/usr/lib/systemd/systemd-import Import container or virtual machine images.
/usr/lib/systemd/systemd-import-fs Import container images from a file system.
/usr/lib/systemd/systemd-importd
/usr/lib/systemd/systemd-machined
/usr/lib/systemd/systemd-pull Download container or virtual machine images.

systemd-bootchart

CMD DESC
/usr/lib/systemd/systemd-bootchart

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment