≡ Menu

ctrl c

Linux / UNIX: Kill Unresponsive SSH Session

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?
[click to continue…]

Sysadmin because even developers need heroes!!!

Copy Shell Prompt Output To Linux / UNIX X Clipboard Directly

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?
[click to continue…]

Linux View / Display a Logfile In Real Time on Screen

I 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?
[click to continue…]

Howto stop or terminate Linux command process with CTRL + C

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

Bash Shell Scripting Disable Control-C [ CTRL+C ] Keys

I want to disable Control-C while running shell bash script program under UNIX / Linux like operating systems. How do I disable Control-C?
[click to continue…]