Difference between ps -ef and ps aux


 
Thread Tools Search this Thread
Operating Systems AIX Difference between ps -ef and ps aux
# 1  
Old 12-11-2012
IBM 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:

Code:
 
# ps
 -ef | wc -l
     519
# ps aux | wc -l
     571

What are these 52 processes found by aux? Can I identifty these processes with ps -ef as well?

Greetings,
Peter
# 2  
Old 12-11-2012
There are two different flavours of UNIXes: System V and BSD. They differ in many architectural decisions and one of these is the process accounting and -managing.

Modern UNIXes are usually "best of both worlds", hybrids, and AIX is not different. In most cases AIX tries to accomodate the SysV-ways as well as the BSD-ways, usually implementing a third genuine AIX-way as well: for instance, have a look at the printing system, where you have the BSD command set, the SysV command set and both are mere frontends to a genuine AIX command set. There is also "tar" (BSD) but also "cpio" (SysV).

The "ps" command is part of the process accounting and -managing system. In AIX it serves in fact in two distinct roles: "ps" called with options without the dash works BSD-like, therefore

Code:
ps aux

shows the process table like a BSD-system would do. Options introduced by a dash switch "ps" to the SysV-mode of operation, therefore:

Code:
ps -ef

shows the process table like a System-V-system. The difference in the process numbers are because "-e" is different to "a" in what is shown. Certain kernel threads are not included in "-e"s output while they are in "a". Try using "-A" instead of "-e", but first read the man page of "ps" to get the details about which option does what and how you can combine them.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to calculate difference of split and sum the difference

In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13. I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. 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

3. 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

4. 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

5. 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

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. Programming

what is the main difference between difference between using nonatomic lseek and O_APPEND

I think both write at the end of the file ...... but is there a sharp difference between those 2 instruction ..... thank you this is my 3rd question today forgive me :D (1 Reply)
Discussion started by: fwrlfo
1 Replies

9. 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

10. UNIX for Dummies Questions & Answers

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, (4 Replies)
Discussion started by: a2715mt
4 Replies
Login or Register to Ask a Question