ps -l
shows the state of a process in the first character of the STAT
column. There are also optional attributes such as s
for a session leader or +
if the process is part of a foreground process group. WCHAN
(wait channel) column shows which kernel event a sleeping process is waiting for.