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:
What are these 52 processes found by aux? Can I identifty these processes with ps -ef as well?
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
shows the process table like a BSD-system would do. Options introduced by a dash switch "ps" to the SysV-mode of operation, therefore:
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.
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)
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)
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)
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)
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)
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)
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)
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)