PS -aux and PS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers PS -aux and PS
# 1  
Old 08-19-2004
Question PS -aux and PS

I am new to the Unix.
Can someone tell me what is the difference between 'PS' command and 'PS -aux"?
Isn't 'PS' mean the current running process?
Isn't 'PS -aux' mean the current running process too?
If they are the same, how come 'PS -aux' always has a lot more listing than 'PS'?


Thanks,
a2715mt
# 2  
Old 08-19-2004
Code:
ps -a

selects all processes except: those not associated with a process - things like daemons, and process leaders.

-e all processes

try reading the output from this command
Code:
man ps

# 3  
Old 08-20-2004
The -x option gives you the FULL command listing...sometimes it can be several lines long.

Without it you only get 80 chars...


Here is a REAL example.


# ps -aex |grep 23052
23052 ? 1:00 FNDLIBR FND Concurrent_Processor MANAGE OLOGIN="APPS/A591A
0917583869700000000000000000000000000000000000000000000" QAPPL="SWAP" QUEUE="PAY
MENT_MANAGER" PMONMETH="LOCK" DECRYPT=Y TARGET="CHTCFAS1" CPID="203318"
26935 pts/tb 0:00 grep 23052


# ps -ae |grep 23052
23052 ? 1:00 FNDLIBR



Notice a difference?
# 4  
Old 08-23-2005
What option can be used for this same result on Solaris ?
It does not have x option so ps -aex does not work.
Any ideas will be highly appreciated.
# 5  
Old 08-23-2005
Solaris does support the x option, you're just not using the right ps to get it to work, you need the berkley version; use /usr/ucb/ps and you'll be able to use the x option.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find the exact process using ps aux command?

Please do not post a technical question in the @How to contact....' forum. I have moved this for you. Hello Everyone, Please help me on this, Requirement here is to check whether the process is running using the process id. For the below scenario, I m trying to grep 1750 process id to... (3 Replies)
Discussion started by: Hari A
3 Replies

2. Shell Programming and Scripting

Get PID Number from “ps aux --sort -rss ”

Hi everyone How can I just get the PID of the following command: ps aux --sort -rss Thanks Regards (2 Replies)
Discussion started by: anonymuser
2 Replies

3. AIX

Run ps aux continuously in AIX

Requirement is to monitor cpu usage /process for a user given time and record the output. topas,topasout,topasrec,tprof not seems to be working for me. so what i am looking for is to run below command continously till the time limit given by the user who runs the script.since below command is a one... (6 Replies)
Discussion started by: NarayanaPrakash
6 Replies

4. Shell Programming and Scripting

Extract a column from ps -aux command

Hi, I have the following output : root 9296 81.7 0.2 1115328 20856 ? Sl 14:38 1:00 /opt/h264rtptranscoder.bin --videoPort=14500 --audioPort=14501 --serverPort=14500 --framesPerSecond=50 --profilesPath=/opt/transcodingProfiles I would like to have the following output : ... (6 Replies)
Discussion started by: liviusbr
6 Replies

5. AIX

Difference between ps -ef and ps aux

Hi, Can someone tell me what the difference is between ps -ef and ps aux. I was under the assumption that both commands would list ALL processes currently running on the system. But on my server I find the following: # ps -ef | wc -l 519 # ps aux | wc -l 571 What... (1 Reply)
Discussion started by: petervg
1 Replies

6. Shell Programming and Scripting

ps aux + grep + nice + while

Hi again, well does anyone knows how can i grep a process that right know the only part of the process name that i know is "backup" then renice it if the cpu consumption is more then 90% ... for now i have : a=$(ps aux | grep -c backup ) while $a > 2 #pseudo code do if ; then #... (16 Replies)
Discussion started by: drd0spt
16 Replies

7. Shell Programming and Scripting

Need to get the list of file with size in AUX

to get the list of file name with size Example: rwxrwxrwx 1 cm x 562KB Nov 6 19:22 a rwxrwxrwx 1 cm x 562MB Nov 6 19:22 a edit by bakunin: Please view this code tag video for how to use code tags when posting code and data. (5 Replies)
Discussion started by: Jewel
5 Replies

8. UNIX for Dummies Questions & Answers

ps aux|grep getty

what is the aim of this command: ps aux|grep getty (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

9. UNIX for Dummies Questions & Answers

Process seen in "ps aux" but not "top"

Hi, I have a process that can be seen after "ps aux" command. However when I do "top" command. This process cannot be seen. How can this happen? Is there anything wrong with my code? (3 Replies)
Discussion started by: monkfan
3 Replies
Login or Register to Ask a Question