Process névre keres (bár szerintem tud másra is) és PID-et ad vissza. Amúgy, ha nem nagyon akarsz pontos lenni, akkor ps aux | grep pid és megnézed mennyi sort ad vissza. (csak ugye, ha pl 2 a pid-je, akkor ez kiírja 22-re is :D). Vagy, ha megvan megvan a process neve, akkor pidof és ha nem ad vissza semmit, akkor nem fut.