CentOS closes Ctrl+Alt+Del to restart shortcuts

  
                

In Linux system, use Ctrl+Alt+Del shortcut combination to quickly restart the system, but if you don't need this function, you can also close it. The following small series will introduce you to CentOS to close Ctrl+Alt. +Del restarts the shortcut combination method.

test environment:

CentOS5.X

Centos6.X

a, CentOS5.X ban by pressing Ctrl + Alt + Del Restart

Edit /etc/inittab

Find

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Change to

#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Or delete the found line and save and exit;

Second, CentOS6. X prohibits pressing Ctrl+Alt+Del at the same time to restart

Method 1:

Edit /etc/init/control-alt-delete.conf

Find

start on control-alt-delete

Change to

#start on control-alt-delete

Method 2:

mv /etc/Init/control-alt-delete.conf /etc/init/control-alt-delete.conf.bak

The above is the way CentOS closes the restart combination Ctrl+Alt+Del, and closes the shortcut combination. After the key, it will take effect without restarting, and it can be closed when it is not needed.

Copyright © Windows knowledge All Rights Reserved