Most of the times it is useful for you to disable ctrl +c and ctrl+z wherein copy and undo. This is the simple script that allows you disable ctrl c and ctrl z
#!/bin/bash
# at start add
trap “” 2 20
# your script
echo ” Test”
# loop for sleep
sleep 5
trap -l command list all signals
20 is for CTRL + Z
2 is for CTRL + C
Here is full list created by trap -l command:
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
5) SIGTRAP 6) SIGABRT [...]
Categories: Linux
Many times I’ll be at a site where I need remote support from someone who is blocked on the outside by a company firewall. Few people realize that if you can get out to the world through a firewall, then it is relatively [...]
Categories: Linux
The newbie states that when he pushes the Eject button on the DVD drive of a server running a certain Redmond-based operating system, it will eject immediately. He then complains that, in most enterprise Linux servers, if a [...]
Categories: Linux

