next up previous contents
Next: vi Quick Reference Up: Solutions to Exercises Previous: Electronic Mail   Contents

Commands II

  1. The find command would look like:
    find $HOME -name myfile -print

  2. To find and remove a file:
    find $HOME -name core -exec rm {} $\backslash$;

  3. myprog has been running for 30 minutes now, and it should have run only 2 minutes.

    To remove the job, I can log in through another window, or system and issue the ps command (on SGIs issue ps -e; on Suns issue ps -asx). Look for the name of your running job in the last column of the output. Once you find it, look at its PID (process I.D.) number.

    To remove it from the system, issue

    kill -9 PID
    where PID is the process I.D. of that job.
  4. To see how a system has been behaving for the last few hours, one would use the sar command.
  5. But to see how a system is currently behaving, one might use any of the following commands:


next up previous contents
Next: vi Quick Reference Up: Solutions to Exercises Previous: Electronic Mail   Contents
Claude Cantin 2010-10-24