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