linux
if you want to find out the PID of a process, you can use ps: [user@desktop ~]$ ps h -o pid -C app1 the parameter -o pid says that you only want the PID of the process, -C app1 specifies the name of the process you want to query, and the parameter h is used to suppress the header of the result table (without it, you''d see a "PID" header above the …