[NC State Home]  Statistics Department IT/Computing: How-To
 

How-To: How do I kill a program.

  • ps -ef | grep [program]
    stat% ps -ef | grep netscape
  • What is the first process number? {PID}
    stat% ps -ef | grep netscape
      sysadm  3675     1  0 14:45:01 pts/2    0:04 /afs/bp.ncsu.edu/contrib/webbrowsers/install/netscape-current/netscape -name Ne
      sysadm  3712  3699  0 14:52:03 pts/6    0:00 grep netscape
    
  • kill [pid]
    stat% kill 3675
    

     

    [Back] Please send any questions or comments to : webmaster@stat.ncsu.edu