The Wayback Machine - https://web.archive.org/web/20231127060714/https://www.geeksforgeeks.org/chkconfig-command-in-linux-with-examples/
Open In App
Related Articles

chkconfig command in Linux with Examples

Improve Article
Improve
Save Article
Save
Like Article
Like

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 15 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials