Visit Our UNIX and Linux User Community


how to find all processes that are running


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to find all processes that are running
# 1  
Old 07-03-2006
how to find all processes that are running

Hi
i've been googling a lot but can't find an answer. All I would like to know is how to find out all processes that are running on a machine.
I know ps gives all YOUR processes.
thanks
# 2  
Old 07-03-2006
Code:
ps -A

look at ps(1)

Last edited by Hitori; 07-03-2006 at 12:40 PM..
# 3  
Old 07-03-2006
thank you Hitori, what does >> mean? stdout?
# 4  
Old 07-03-2006
Nothing at all. Something like quote Smilie. I've meant look at man page ps(1)
# 5  
Old 07-03-2006
thanks Hitori I have Smilie
# 6  
Old 07-04-2006
One more question

What is the difference between ps -e and ps -ef .
Also i have just loggged in and given the command ps -ef | grep gap44049

gap44049 19759 19056 1 16:57:34 pts/th 0:00 grep gap44049
gap44049 19758 19056 1 16:57:34 pts/th 0:00 ps -ef
gap44049 19056 19024 0 16:44:06 pts/th 0:00 /usr/local/bin/tcsh
gap44049 19024 19023 0 16:43:58 pts/th 0:00 -tcsh

What do these 4 processes mean when i have only one session running ?
# 7  
Old 07-04-2006
ps -ef | grep gap44049

Implying that gap44049 is your login you can type simply ps -f instead of ps -ef | grep gap44049.

In output that you recieved there are info about all processes that are being executed (tcsh -the shell, ps, grep commands) (dont know what means ' -tcsh')

-f means full, i.e. show process uids, ppids
-e shows different set of columns
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #108
Difficulty: Easy
The outer layers of the Linux architecture has the shell, shell commands and application programs.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I find the number of processes running on root?

Is there a certain man command I'm missing here? I searched in ps but I couldn't find something that would give me the number of processes running on root. I only want to see the number of processes, not the processes itself. (2 Replies)
Discussion started by: l3monz
2 Replies

2. Linux

Running processes

Hi guys is it normal to have 5-10 cron/syslog processes running... in my case i got 10 cron process running. (4 Replies)
Discussion started by: batas
4 Replies

3. Solaris

Running processes on GZ/LZ

Hi guys just a question is it normal to see running process on a non-global zone in the global zone... processes such as cron. (3 Replies)
Discussion started by: batas
3 Replies

4. Shell Programming and Scripting

how to know the running processes.

Hi can anybody help me regarding this.. i want know the output of ps -ef with explanation. how can we know the running processess. this is the output of ps -elf F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 19 T root 0 0 0 0 SY ... (1 Reply)
Discussion started by: rajesh_pola
1 Replies

5. Shell Programming and Scripting

Help in running two processes in parellel

I have a script something like this: #!/usr/bin/ksh CLASSPATH=/apps/opt/db2udb/admin/db2bdt/sqllib/java/db2java.zip:/apps/opt/db2udb/admin/db2bdt/sqllib/java/db2jcc.jar:/apps/opt/db2udb/admin/db2bdt/sqllib/function:$CLASSPATH export CLASSPATH ... (7 Replies)
Discussion started by: ss3944
7 Replies

6. Shell Programming and Scripting

Need help with running processes script

I'm doing a script with the Shell. I need that it only show the number of running processes. Ex: echo "There are `command` running processes" Thnx! Pd: Sorry the idiom. I'm spanish. (5 Replies)
Discussion started by: Ikebana
5 Replies

7. Shell Programming and Scripting

Need help with running processes script

I'm doing a script with the Shell. I need that it only show the number of running processes. Ex: echo "There are `command` running processes" Thnx! Pd: Sorry the idiom. I'm spanish. (2 Replies)
Discussion started by: Ikebana
2 Replies

8. UNIX for Dummies Questions & Answers

identifying running processes

how to identify the processes running by giving the parent process id (1 Reply)
Discussion started by: trichyselva
1 Replies

9. Programming

parsing currently running processes

Hey guys, I'm writing a monitoring program that reads the pattern and the max and min number of instances of a process and then proceeds to parse the currently running processes for the pattern. I just want to know how I should go about this. I'll give you an idea of the flow of the program:... (7 Replies)
Discussion started by: blowtorch
7 Replies

10. Programming

getting certain info for all processes currently running

i am writing a utility that displays information about all the running processes in the /proc directory. I do not know how to get the following information for each of the processes in the /proc directory: -effective user id -effective user name -effective group id -effective group name... (3 Replies)
Discussion started by: Yifan_Guo
3 Replies

Featured Tech Videos