• 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. “az vm” Command Examples (Manage virtual machines in Azure)
  2. lrzuntar: command not found
  3. How to Install awscli
  4. CentOS / RHEL : How to assemble a software RAID in Rescue mode
  5. dlv: Debugger for the Go programming language
  6. sed: command not found
  7. CentOS / RHEL : How to disable root login or root access on a system
  8. aws ec2: CLI for AWS EC2 (Command Examples)
  9. How to Boot KVM Guest into a Rescue shell
  10. efibootmgr Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright