ps is a command for printing information about running processes
3
votes
1answer
200 views
HP-UX SZ limit for ps?
Right so I have a fun little thing that I'm deathly confuzzled about. I have a program that is running and I am getting the following:
using top:
SIZE RES
1639M 359M
using ps:
SZ
20171
...
10
votes
2answers
3k views
What do the brackets around processes mean?
mark@mark-VirtualBox:~/auto/lib$ ps -Awwo pid,comm,args
PID COMMAND COMMAND
1 init /sbin/init
2 kthreadd [kthreadd]
3 ksoftirqd/0 [ksoftirqd/0]
5 ...
5
votes
5answers
768 views
Piping PS output into a Text file
So what im wanting to do is pretty basic.....but im not sure how to go about it.
Lets say I have a program running, but I want to pipe the output of ps -C "ProgramXX" into a file.
Normally Running ps ...
2
votes
1answer
3k views
How to find out total memory resource usage with ps?
With ps command I can find out how much memory each program uses:
ps -u mertnuhoglu -o pcpu,rss,pid,command
Is it possible to find out the sums of each type of resource usage as well, easily?
3
votes
4answers
1k views
Solaris ptree style tool for Linux
I'm looking for the Linux tool that will print the same output as the Solaris ptree.
For example:
# ptree 538
538 /usr/lib/ssh/sshd
889 /usr/lib/ssh/sshd
890 /usr/lib/ssh/sshd
1498 ...
2
votes
4answers
540 views
How to run java process to be seen not as 'java…' in processes list?
Is it possible to run a Java process in Linux in a way that it could be seen in ps as some sort of alias? It would be easier to restart it when it is down.
6
votes
2answers
504 views
Difference between free -m and ps -euf
I'm not an expert on linux so I do apologize in advance for the silly question.
I have a vps machine with ubuntu 10.04 and 512Mb of RAM. I'm trying to guess how much memory is available after running ...
2
votes
3answers
2k views
Alternative to `pkill` or `pgrep -f` on cygwin?
Suppose I have starting my process like:
java -DSOME_STRING -jar foo.jar
Then on linux, I can use the following to find or kill this process:
pgrep -f SOME_STRING
pkill -f SOME_STRING
However ...
8
votes
2answers
451 views
Which to choose - BSD or Unix-style commands where available?
Commands like ps come with a lot of parameters, especially because they give the use an option to choose between Unix and BSD style flags. I hope you get my point here.
So, when there's such an ...
2
votes
1answer
3k views
What does this process STAT indicates?
If you check the STAT column in above image you will see Ss S S< SN and R+
What does this indicates ? Process states.
If yes,Then what is the significance of 'Ss S< SN and R+'?
9
votes
1answer
2k views
Why the value of VSIZE in top is different from the value of VSZ (Virtual set size) in ps?
I know VSZ in ps is for the total address space allocated for the app and is sometimes aliased as vsize (mentioned in man page of ps on linux), but what's the definition of VSIZE in top? This top ...
18
votes
3answers
4k views
What are “session leaders” in `ps`?
What are session leaders, as in ps -d which selects all processes except session leaders?
0
votes
2answers
2k views
Frequently used “ps” (process status) commands in linux? [closed]
EDITED:
These are the the only most commonly used (and important) ps command options I've come across so far: $ ps ux, $ ps au, $ ps aux, $ ps U aahan, $ ps uU aahan
So, is that all, or am I missing ...
2
votes
1answer
782 views
A more readable ps
Are there any tools that improve the readability of ps in the same spirit as ack for grep?
This would be especially on OS X where ps does not even have options such as --sort user.
So far the nicest ...
2
votes
2answers
515 views
How can I get a list of long running processes that match a particular pattern?
I know that I can do ps aux | grep cgi to get a list of all cgi scripts currently running, and ps -p [pid] -o etime= can get me the run time for each pid; is there a way to combine the two, or better ...
2
votes
1answer
1k views
parsing process ID/names from /proc, thread IDs
When I'm parsing process IDs from /proc, obviously each thread of a process gets its own ID. And I realize that all the threads in that same process can be gathered from /proc/${pid}/task/.
But my ...
5
votes
2answers
1k views
killall gives me `no process found ` but ps
Could somebody explain to me the difference between kill and killall? Why doesn't killall see what ps shows?
# ps aux |grep db2
root 1123 0.0 0.8 841300 33956 pts/1 Sl 11:48 0:00 ...
5
votes
4answers
6k views
Show top five CPU consuming processes with `ps`
How to show top five CPU consuming processes with ps?
3
votes
2answers
813 views
How to list only non-<defunct> processes?
Is there a combination of command-line options for ps or pgrep or some other relatively direct way to determine if a particular process name is actually running (available for normal use)..
By ...
10
votes
2answers
2k views
Why does `htop` show more process than `ps`
In ps xf
26395 pts/78 Ss 0:00 \_ bash
27016 pts/78 Sl+ 0:04 | \_ unicorn_rails master -c config/unicorn.rb
27042 pts/78 Sl+ 0:00 | ...
2
votes
1answer
607 views
ps command not giving output in home directory
I am logging into a solaris server, switching to bash, then switching to another user "sruser" and switching to bash.
/home/batch/sruser/ is the home directory of the user "sruser".
The issue is ps ...
19
votes
3answers
30k views
How can I get a full process list in solaris, without truncated lines?
Is there a way to generate a full process listing in solaris, without truncated lines? I've tried the ps commmand, with the following arguments:
-f Generates a full listing. ...
1
vote
4answers
919 views
Using regex to see if a UNIX process is up
In UNIX, I am checking to see if a process is up by executing the following command;
E.g.
psg dtllst pe99
This returns the following output if the process is running;
UID PID PPID C ...
11
votes
3answers
3k views
What would cause ps to report uid instead of username?
I have Eucalyptus installed on my Linux machine, and I've noticed that for processes owned by the eucalyptus user, ps reports the userid instead of the username. For example:
$ sudo -i -u eucalyptus
...