Forrest logo
back to the chkconfig tool

chkconfig:tldr:da8f3

chkconfig: List services with runlevel.
$ chkconfig --list
try on your machine

The command "chkconfig --list" is used to list all services configured to start or stop automatically during system startup or shutdown.

Here's a breakdown of the command:

  • "chkconfig" is a command-line tool used in Unix-like operating systems, particularly Linux, to manage and query the system services.
  • "--list" is an option or flag used with the "chkconfig" command to specify that we want to list or display the current configuration of services.

When you run "chkconfig --list" in your terminal, it will show a list of all services installed on your system and indicate whether they are set to start automatically during system startup or shutdown.

Typically, the output will have multiple columns displaying the service name, the run-levels it is configured to start or stop at, and whether it is currently enabled or disabled.

For example, the output may look like this:

network      0:off  1:off  2:on   3:on   4:on   5:on   6:off
httpd        0:off  1:off  2:on   3:on   4:on   5:on   6:off
sshd         0:off  1:off  2:on   3:on   4:on   5:on   6:off

In the output above, "network" is set to start in run-levels 2-5, "httpd" is set to start in run-levels 2-5, and "sshd" is set to start in run-levels 2-5. The numbers "0:off", "1:off", "2:on", and so on indicate the status of the service in each run-level. "off" means the service is disabled, and "on" means it is enabled. The numbers 0-6 represent different run-levels in the system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the chkconfig tool