Suppose there are two users : user1 & user2.
Now we know that if I give top -u user1
, I can see only the process respective to user1
.
But if I do top -u user2
, I can see all the process running under user2
.
Similar is the case with ps -f -U user1
.
Is there a way to make ps
& top
restrict to only see the processes running under their Id & not others ?