If I run
top -u username I will see all the processes by a particular user. Is there a way to also see all the processes that the user called via sudo?
It doesn't seem to be possible in an easy way.
One way you could try, is to track it down to the terminal where the user is logged in, then see processes running as root on that terminal.
Note the user is on
Now press f (field select), then g (toggle controlling tty field), then Enter.
Now watch for processes with
You can also sort by
Or you could use
Then do anything with that list. Even use it to run
Of course, in that case,
Also don't forget that a user running a command is probably being logged, e.g. to
You could install htop and see if it gives you a better overview. htop supports filtering by user as well.