add the x flag to the ps command: STAT TIME COMMAND S 0:00 login 8 0:00 bash 0:00 grep 0:00 login 0:00 bash In this output, the additional STAT column .