Linux / UNIX: Kill Unresponsive SSH Session

Posted on in Categories , last updated January 5, 2011

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?

Copy Shell Prompt Output To Linux / UNIX X Clipboard Directly

Posted on in Categories , , , , , , , , , , last updated October 24, 2008

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?

Howto stop or terminate Linux command process with CTRL + C

Posted on in Categories , , , , , , , , , , last updated July 12, 2007

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