LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ps command (https://www.linuxquestions.org/questions/linux-newbie-8/ps-command-592650/)

christianunix 10-18-2007 12:53 AM

ps command
 
if I give the command ps -ef,

I get the information about all users logged onto the system and their processes.

but is there any other kind of option to ps which gives me the login names of the users logged onto the system, and what kind of processes they are running?

ps -ef is too long. is there any shorter kind of an option? that for example gives me the names of the processes of well-known people?

if I type in ps only, it gives me two processes, ps and bash, very simple. I would like to view such a simple result, for all users logged onto the system.

thanks in advance.

christianunix 10-18-2007 01:00 AM

ps -au seems to be doing a job like this :)

tajamari 10-18-2007 01:17 AM

ps -ef | grep "username"

salasi 10-18-2007 06:36 AM

I'm sorry to only be offering you meta-help (it is in your best interests in the longer run), but 'man ps' is a good place to start for information about ps.

You may even choose to generalise that by trying the man page for almost any command that you are interested in.


All times are GMT -5. The time now is 02:51 PM.