English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux chkconfig Command

Linux Command大全

The Linux chkconfig command is used to check and set various services of the system.

This is a program developed by Red Hat Company in accordance with the GPL rules. It can query which system services will be executed at each execution level of the operating system, including various resident services.

Syntax

chkconfig [--add][--del][--list][system service] or chkconfig [--level <level code>][system service][on/off/reset]

Parameters:

  • --add  Add the specified system service, allow the chkconfig command to manage it, and simultaneously add related data to the system startup narrative file.
  • --del  Delete the specified system service, stop managing it by the chkconfig command, and simultaneously delete related data from the system startup narrative file.
  • --level<level code>  Specify the execution level in which the system services should be enabled or disabled.

Online Examples

List all commands known by chkconfig.

# chkconfig -list 

Enable Service.

# chkconfig telnet on //Enable Telnet Service
# chkconfig --list //List all services known by chkconfig

Disable Service

# chkconfig telnet off  //Disable Telnet Service
# chkconfig -list //List all services known by chkconfig

Linux Command大全