Posted in Command Line, Linux Better Way to find Process ID of an Application in Linux Binny V A September 14, 2007 Leave a Comment on Better Way to find Process ID of an Application in Linux A better way to get the process id of an application. I recommend giving an alias for this command… ps aux|grep firefox|awk '{print 2 "\t\t"12}'|head -n1 Replace firefox with the name of the application you are searching for. Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.