Sometime my ssh session just stops working because of the internet connection problem. I tried pressing CTRL+Z and CTRL+C to terminate session, but failed to work. How do I properly kill a hung SSH session without killing my local terminal or using kill command?
Q. How do I copy output of command to Linux Gnome clipboard? How do I send files directly to X Windows clipboard from a shell prompt? How do I insert command line output or files contains into the clipboard?
Q. Sometime I type command and accidentally hit the [ENTER] key and immeditly realized that it was wrong command. How do I stop process assuming that process is not going in background? For example
cp /path/* /wrong/path
Stop or terminate Linux command process with CTRL + C
A. To stop process hit CTRL + C, for example, you entered:
$ cp -r /path/* /wrong/path
To stop the command hit CTRL+C and retype the command:
$ cp -r /path/* /correct/path
I want to disable Control-C while running shell bash script program under UNIX / Linux like operating systems. How do I disable Control-C?