Mac OS X,  Mac OS X Server,  Mac Security,  Ubuntu,  Unix

ps

Limit process listing to those belonging to a given user by piping the output through grep. For example, processes belonging to a user with a username charles can be displayed with the following:

ps -ef | grep charles

The -l option generates a long listing, and when used together with the -e and -f options creates a table with 15 columns, which can also be piped for the user name:

ps -efl | grep charles