chkconfig
Quick Reference
Command Name:
chkconfig
Category:
system management
Platform:
Linux (RHEL/CentOS/Fedora)
Basic Usage:
Common Use Cases
Syntax
chkconfig [--list] [--type type] [name] chkconfig --add name chkconfig --del name chkconfig [--level levels] name <on|off|reset|resetpriorities>
Options
Option | Description |
---|---|
--level levels |
Specify runlevels to operate on (0-6) |
--add name |
Add a new service for management by chkconfig |
--del name |
Remove a service from chkconfig management |
--list [name] |
List services (or specific service) and their current configuration |
--type type |
List only specified type of services (sysv, xinetd) |
--override name |
Override system-wide enablement state for a specific service |
--help |
Display help message and exit |
Examples
How to Use These Examples
The examples below show common ways to use the chkconfig
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
# List all services and their current settings chkconfig --list
Advanced Examples:
# List only xinetd services chkconfig --list --type xinetd