Main Menu

Search

LINUX: How To List All the Services and their State Using systemctl command? (How To Doc)

On Linux 7 & above versions "chkconfig --list" command does not list all th systemd services and their status.

We will have to use systemctl command to check the services and their status on Linux 7 and above versions.

Below command can be executed to list all the services and their status.
systemctl list-unit-files

Below is sample output. 
UNIT FILE                                     STATE
proc-sys-fs-binfmt_misc.automount             masked
dev-hugepages.mount                           static
dev-mqueue.mount                              static
proc-fs-nfsd.mount                            static
proc-sys-fs-binfmt_misc.mount                 static
sys-fs-fuse-connections.mount                 static
sys-kernel-config.mount                       static
sys-kernel-debug.mount                        static
tmp.mount                                     disabled
var-lib-nfs-rpc_pipefs.mount                  static
brandbot.path                                 enabled
systemd-ask-password-console.path             static
systemd-ask-password-wall.path                static
session-2.scope                               static
acpid.service                                 enabled
arp-ethers.service                            disabled
auth-rpcgss-module.service                    static

Products to which Article Applies


All Linux Operating Systems


Additional Reference

No comments:

Post a Comment