• 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 Examples in Linux

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.

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. How to uninstall neovim from Ubuntu
  2. cpuid Command Examples in Linux
  3. How to Create Disk Partitions using cfdisk
  4. How to monitor NVME drives on Centos 6
  5. lsattr: command not found
  6. if Command Examples in Linux
  7. UNIX / Linux : What is the correct permission of /tmp and /var/tmp directories
  8. pacman-mirrors Command Examples in Linux
  9. qsub Command Examples in Linux
  10. “aws ses” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • “glab issue” Command Examples
  • “glab auth” Command Examples
  • “glab alias” Command Examples
  • gixy Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright