cortx
Participant
Post count: 17

I’m a very newbie in linux command.
But I’ve found that:
/etc$ ps aux | grep *retro*

pi 2662 0.0 0.1 1752 508 tty1 S+ 17:53 0:00 sh -c /home/pi/RetroPie/supplementary/runcommand/runcommand.sh 1 “/home/pi/RetroPie/emulators/RetroArch/installdir/bin/retroarch -L /home/pi/RetroPie/emulatorcores/picodrive/picodrive_libretro.so –config /home/pi/RetroPie/configs/all/retroarch.cfg –appendconfig /home/pi/RetroPie/configs/megadrive/retroarch.cfg /home/pi/RetroPie/roms/megadrive/Streets\ of\ Rage.bin”
pi 2663 0.0 0.3 4276 1300 tty1 S+ 17:53 0:00 /bin/bash /home/pi/RetroPie/supplementary/runcommand/runcommand.sh 1 /home/pi/RetroPie/emulators/RetroArch/installdir/bin/retroarch -L /home/pi/RetroPie/emulatorcores/picodrive/picodrive_libretro.so –config /home/pi/RetroPie/configs/all/retroarch.cfg –appendconfig /home/pi/RetroPie/configs/megadrive/retroarch.cfg /home/pi/RetroPie/roms/megadrive/Streets\ of\ Rage.bin
pi 2690 49.7 1.7 76448 6888 tty1 Rl+ 17:54 59:12 /home/pi/RetroPie/emulators/RetroArch/installdir/bin/retroarch -L /home/pi/RetroPie/emulatorcores/picodrive/picodrive_libretro.so –config /home/pi/RetroPie/configs/all/retroarch.cfg –appendconfig /home/pi/RetroPie/configs/megadrive/retroarch.cfg /home/pi/RetroPie/roms/megadrive/Streets of Rage.bin
pi 16527 1.0 0.2 3540 808 ? S 19:53 0:00 grep retroarch.cfg

/etc$ ps -u pi

PID TTY TIME CMD
2530 tty1 00:00:00 bash
2539 tty1 00:00:00 emulationstatio
2543 tty1 00:00:16 emulationstatio
2662 tty1 00:00:00 sh
2663 tty1 00:00:00 runcommand.sh
2690 tty1 00:59:35 retroarch
11569 ? 00:00:00 sshd
11570 ? 00:00:00 sftp-server
12057 ? 00:00:00 sshd
12058 ? 00:00:00 bash
16614 ? 00:00:00 ps

With the Time start and Time elapsed columns I thinks the process is the PID 2690
But witch one should I kill: The one from “ps -u pi” or the one from “pa aux | grep *retro*”

How can I kill a process without know the number ?