• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

update-rc.d Command Examples in Linux

by Deepika

update-rc.d is a Linux command-line utility used to manage System-V style init script links, which are used to start, stop, and manage system services at boot time. Init scripts are typically stored in the /etc/init.d/ directory and are started using the init process, which is the first process started by the Linux kernel.

update-rc.d is used to install or remove init scripts, which are run at specific runlevels during the system startup process. When you install a new service or application on your Linux system, you will often need to create an init script that defines how the service should be started, stopped, and managed. This script is then linked to the appropriate runlevel directories using update-rc.d.

update-rc.d Command Examples

1. Install a service:

# update-rc.d mysql defaults

2. Enable a service:

# update-rc.d mysql enable

3. Disable a service:

# update-rc.d mysql disable

4. Forcibly remove a service:

# update-rc.d -f mysql remove

Summary

In summary, update-rc.d is a useful utility for managing System-V style init script links. It provides an easy way to install or remove init scripts, which are necessary for starting, stopping, and managing system services at boot time.

Filed Under: Linux

Some more articles you might also be interested in …

  1. cgcreate: command not found
  2. chromium-browser: command not found
  3. makepkg: command not found
  4. rolldice: command not found
  5. groupmems Command Examples in Linux
  6. clang++: Compiles C++ source files
  7. nmtui: command not found
  8. taskset: command not found
  9. lpstat Command Examples
  10. How to uninstall rbenv from Ubuntu

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright