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. I’d like to see my php or apache web server log files in real time. How do I see log file in real time including all incoming logs? A. You need to use tail command which output the last part of files in real time including all incoming logs to a file. tail -f [...]
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, [...]
I want to disable Control-C while running shell bash script program under UNIX / Linux like operating systems. How do I disable Control-C?