I've been scrounging around the man page trying to understand ps
better. Is there a combination of flags that causes ps
to return all of the processes for my user that aren't attached to a terminal? The -t -
and -u steve
filters seem to combine as an OR, returning all non-terminal processes for all users plus all processes for the given user:
ps -t - -f -u steve
But I want them to function as an AND, returning only non-terminal processes for a single user, preferably automatically using the current user.
Is there a way to do this with just ps
alone?