How can I know if a process is running background or foreground in commands
I first thought that when I type in
ps -ef, there is a section named TTY.
when I look into the list of TTY, most of them are
?. I wonder if that question mark means process running background.
I want to check if I am right! If not, I want to know how I can know if the process is running background or foreground?
jobs is not used here.