home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8338 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!sdd.hp.com!nigel.msen.com!yale.edu!yale!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!ericy
  3. From: ericy@hal.gnu.ai.mit.edu (Eric Youngdale)
  4. Subject: Re: killing a process
  5. Message-ID: <1992Aug15.190723.5752@mintaka.lcs.mit.edu>
  6. Sender: news@mintaka.lcs.mit.edu
  7. Organization: /etc/organization
  8. References: <1992Aug15.180907.21069@usenet.ins.cwru.edu>
  9. Date: Sat, 15 Aug 1992 19:07:23 GMT
  10. Lines: 20
  11.  
  12. In article <1992Aug15.180907.21069@usenet.ins.cwru.edu> mdr4@po.CWRU.Edu (Mark D. Rutherford) writes:
  13. >
  14. >I know to kill a process you use the "kill" command.  But to use the
  15. >kill command, you need the process id number.  How do I find out
  16. >the pid number?  I couldn't find the "ps" command on any of the FTP
  17. >sites.
  18.  
  19.     It is possible to kill a process without knowing the pid.  If the
  20. process you want to kill is one that you started from your shell, and you
  21. suspended it, then you can use the jobs command to show the job numbers,
  22. and then you can type 
  23.  
  24.     kill %1
  25.  
  26. to kill job number 1, etc.
  27.  
  28.     If you still need the ps command, look for ps-0.97.tar.Z on the usual
  29. archive sites.
  30.  
  31. -Eric
  32.