Example of cancelling a foreground process

To cancel the foreground process:

   find / -name '*.ps' -print
   ...
   ...
   ^C
   pwd
   /home/jeremy/book
   find . -name '*.ps' -print

The user enters a command to find files with the extension .ps starting from the root directory!

Realising that this command will take a long time to run and is not appropriate, they cancel it, check their current directory and re-run the command from there.


[Home] [Index]