I have executed
>> watch tree ./
Now my problem is I'm unable to exit from watch
- without closing the terminal.
I read man page of watch
but they have not mentioned how to exit from watch screen.
Is there is magic key combo that you need to use to exit from watch ?
It's like one those problems you face when you for the first time open vim and don't know how to close it.
Press Ctrl-C to interrupt
watch
. Ctrl-C is the general key combination to kill the foreground process in the shell. If that fails (it sometimes does for hung processes), pressing Ctrl-Z and issuingkill -9 %1
to kill process number one works.If you press Ctrl-Z you can do more things:
fg
bg
jobs
kill
renice