ometimes my ssh session stops working because of the internet connection problem. I tried pressing CTRL+Z and CTRL+C to terminate my ssh session but failed to work. How do I properly kill a hung SSH session without killing my local terminal or using the kill command
? How can I kill unresponsive hung SSH session on macOS?
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?
would like to see my php or apache web server log files in real time. How do I see a log file in real time including all incoming logs on Linux using ssh based session?
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?