• 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 not found

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.

If you encounter the below error while running the command update-rc.d:

update-rc.d: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install init-system-helpers
Ubuntu apt-get install init-system-helpers
Kali Linux apt-get install init-system-helpers
Raspbian apt-get install init-system-helpers

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. hunspell Command Examples
  2. How to Test Port [TCP/UDP] Connectivity from a Linux Server
  3. “git revert” Command Examples
  4. How to install zip/unzip package in Linux CentOS/RHEL 7 and 8
  5. xeyes: command not found
  6. 6 Bash Shell Command Line Chaining Operators in Linux
  7. pdbedit Command Examples in Linux
  8. gsettings Command Examples in Linux
  9. chafa: Image printing in the terminal
  10. dir Command Examples in Linux

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