Open In App

chkconfig command in Linux with Examples

Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisite: Run Levels in Linux

chkconfig command is used to list all available services and view or update their run level settings. In simple words it is used to list current startup information of services or any particular service, updating runlevel settings of service and adding or removing service from management.

Synopsis:

chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig --override name
chkconfig [--level levels] name 
chkconfig [--level levels] name

Options:

  • To List current status of all system services.
    chkconfig --list

  • To View current status of a particular services.
    chkconfig --list rhnsd

  • For Disabling a Service: By default 2 3 4 5 run levels are affected by this command to disable certain run levels only, add –level attribute followed by run level.
    chkconfig rhnsd off

  • Enabling a Service: By default 2 3 4 5 run levels are affected by this command to enable certain run levels only, add –level attribute followed by run level.
    chkconfig rhnsd on

  • To Delete a Service
    chkconfig del rhnsd

  • To add a Service
    chkconfig add rhnsd


Last Updated : 15 May, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads