Stop the running command and return to bash

If you wish to terminate a command that is running in the terminal press CTRL + C

In addition to what’s mentioned above, you can use smart job control features of your shell to make life eaiser for you. To do job control for bash, you can: use Ctrl-Z for stopping/pausing the foreground process, type `bg’ to run a stopped process (but run it in the background), or type `fg’ to run a stopped process in the foreground. The command `jobs’ will give you a list of jobs and their numbers. If you have many jobs, you can use the aforementioned numbers after `fg’ and `bg’ to indicate what job you are applying the command to.

Print Friendly, PDF & Email

More Like This


Categories


Linux
  • Post a comment