stop an executable file
i run this command on file : chmod u+x recon (recon is the name of the file). then i run the file in question (. recon). i just want to stop it; how to do this ?
|
Code:
ps aux | grep recon ---------- Post added 02-23-11 at 11:57 AM ---------- Or if it doesn't run to background, CONTROL and C |
for example if you want to kill firefox
Code:
$ ps -ef | grep firefox Code:
$ kill -9 31879 |
Kind of sloppy way to do this but it has never failed me
Say you wanted to kill firefox kill `ps aux | grep firefox ` This will give you output saying "pid does not exist" etc etc, it runs the kill command on all output from previous command so ignore that. It will however kill the pid your targeting. |
If it run in the terminal where you can't type you can try
<ctrl> + c |
u can also try ctrl+z in some situations:newbie:
|
killall -9 recon perhaps?
|
Quote:
One more way to do it.... You can just use pkill. Code:
pkill firefox |
Indeed using 'pkill' (also see 'pgrep' where people think 'ps|grep') is often faster and more efficient. Doesn't work in all cases though.
|
Quote:
|
All times are GMT -5. The time now is 01:55 AM. |