processes thread of a user August 7, 2013 by Om Prakash Singh There are options with ps itself for better filter options, than may be doing it with grep, worth a try. $ ps -LF -u user