Quote:
|
Originally Posted by hermouche
Thanks ppesci,
Which means that there is no special command for stopping yum from the same terminal, we should open a new one and kill it from there!!
red
|
You could kick the process into the background, then you can use the same terminal.
ctrl z will suspend the process, then the command 'bg' will place it in the background.
You can then use 'kill %1' which will kill the 1st process in the background.
The command 'jobs' will show you which commands are in the background and its number
[gordon@lap1 ~]$ gthumb
[1]+ Stopped gthumb
[gordon@lap1 ~]$ bg
[1]+ gthumb &
[gordon@lap1 ~]$ gkrellm
[2]+ Stopped gkrellm
[gordon@lap1 ~]$ bg
[2]+ gkrellm &
[gordon@lap1 ~]$ jobs
[1]- Running gthumb &
[2]+ Running gkrellm &
[gordon@lap1 ~]$ kill %2
[gordon@lap1 ~]$ kill %1
[2]+ Exit 1 gkrellm
[gordon@lap1 ~]$
[1]+ Terminated gthumb
[gordon@lap1 ~]$