Fri. Aug 14th, 2020

How to view service running on startup in Linux

1 min read

systemctl may be used to introspect and control the state of the “systemd” system and service manager. To view service running on startup in Linux, you use a simple command:

systemctl list-unit-files

List unit files installed on the system, in combination with their enablement state (as reported by
is-enabled). If one or more PATTERNs are specified, only unit files whose name matches one of them are
shown (patterns matching unit file system paths are not supported).

List all startup files whose status is enabled. You use command:

systemctl list-unit-files | grep enable