How to stop/Interrupt cp or mv Linux or Unix command

To stop or interrupt the cp or mv command in Linux or Unix, you can use the CTRL + C keyboard combination.

CTRL + C sends the SIGINT signal to the process, which tells it to stop its execution immediately. If the cp or mv command is in the middle of copying or moving a file, the process will be terminated and the file will not be fully copied or moved.

Note that depending on the state of the process, it may take a moment for the process to stop after you press CTRL + C. If the process is stuck or unresponsive, you may need to use the kill command to force the process to stop.

Leave a Comment