-6

I clicked on a.out of a code in Linux, now I want to stop running code but as I didn't use the terminal, I don't know that how can I stop the code from running. What can I do? I am running another code from last week. I can not kill both by turn off the computer because the first code is running from previous week and I don't have time to run it again

Mathe Ma
  • 9
  • 2

1 Answers1

0

So, if you're running two instances of a.out (which I'm just assuming because your question is unclear...) then, as other users have said, run:

pgrep a.out

If the second a.out process is the one you want to kill, take the larger PID number (in your case it seems to be 19564) and run:

kill 19564
samuelnj
  • 1,627
  • 1
  • 10
  • 19