• 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

ctrlaltdel: command not found

by Deepika

The ctrlaltdel command is a utility in Linux that is used to send the “Control-Alt-Delete” key combination to the system. This key combination is used to reboot or shut down the system, depending on the system configuration.

To use the ctrlaltdel command, you will need to run it as the root user or with superuser privileges. This can be done by using the sudo command. For example, to reboot the system immediately without any preparation using the ctrlaltdel command, you can use the following command:

# sudo ctrlaltdel hard

This will send the “Control-Alt-Delete” key combination to the system, which will cause it to reboot.

If you encounter the below error while running the command ctrlaltdel:

ctrlaltdel: command not found

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

Distribution Command
Debian apt-get install util-linux
Ubuntu apt-get install util-linux
Alpine apk add util-linux
Arch Linux pacman -S util-linux
Kali Linux apt-get install util-linux
CentOS yum install util-linux
Fedora dnf install util-linux
OS X brew install util-linux
Raspbian apt-get install util-linux

ctrlaltdel Command Examples

1. Get current setting:

# ctrlaltdel

2. Set CTRL+ALT+DEL to reboot immediately, without any preparation:

# sudo ctrlaltdel hard

3. Set CTRL+ALT+DEL to reboot “normally”, giving processes a chance to exit first (send SIGINT to PID1):

# sudo ctrlaltdel soft

Filed Under: Linux

Some more articles you might also be interested in …

  1. “Failed to Synchronize Cache For Repo ‘repo_name’, Ignoring This Repo” – CentOS/RHEL 8 error
  2. dphys-swapfile Command Examples in Linux
  3. CentOS / RHEL : How to view the commands executed in yum history command output
  4. How to Disable rpc.quotad Service in CentOS/RHEL
  5. Install AzCopy on Linux – Fastest way to copy in Azure
  6. ack – A search tool like grep, optimized for developers (Command Examples)
  7. “Couldn’t find device with uuid [UUID]” – error whith pvs command
  8. uuidgen Command Examples in Linux
  9. The Squid Service in Failed State with Error: “Failed to make swap directory /var/spool/squid/00: (13) Permission denied”
  10. consul-kv: Distributed key-value store with health checking and service discovery

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