In most Unix-like operating systems, the "ps" program displays the currently-running processes.
Questions tagged [ps]
127 questions
2
votes
0 answers
cygwin's ps -W doesn't show all processes when running through an ssh session
I hope this is the right place to ask this question: I have two machines (Win7) running cygwin. Machine A connects to Machine B through an ssh session. When I run ps -W in the ssh terminal on A, the list of processes is missing some of the processes…

0x4B1D
- 141
- 7
2
votes
1 answer
Find site of apache from linux process table
I am using Ubuntu server and when I run ps aux I get the following process table http://pastebin.com/NJsASBek as we can see apache proceess are shown like this:
www-data 26487 0.0 0.9 245476 14920 ? Sl 17:32 0:00 /usr/sbin/apache2
-k start
Where…

quarry32
- 255
- 2
- 11
2
votes
3 answers
Excluding child processes from ps
Background: To reload app configuration I need to kill -HUP the parent processes' PIDs. To find PIDs I currently use ps auxf | grep gunicorn with the following example output:
$ ps auxf | grep gunicorn
stpe 4222 0.0 0.2 64524 11668 pts/2 …

stpe
- 125
- 1
- 7
2
votes
1 answer
what is khostd?
I see this process but can't seem to find anything about it on Google:
init─┬─crond
├─dbus-daemon
├─events/0
├─events/1
├─httpd───8*[httpd]
├─khelper
├─khostd───khostd
├─klogd
├─ksoftirqd/0
What is khostd? Is…

lamp_scaler
- 577
- 1
- 6
- 18
2
votes
2 answers
Where does the name in the "COMMAND" field of `ps aux` come from?
I understand it displays the command with arguments, or when unavailable the command in square brackets.
But where do the names come from for processes such as passenger worker ruby instances, which show up as:
root@XXX:~# ps aux | grep…

jberryman
- 914
- 2
- 10
- 25
2
votes
4 answers
"ps -ew" won't show wide output
It only shows the first 15 characters from /proc/pid/stat. But "ps -w pid" shows wide output. Why? Is this a bug? Thanks.

Fish Monitor
- 353
- 3
- 11
2
votes
4 answers
Can 'ps' show me only processes I own, plus all their ancestors, in tree format?
Here's what I want to do: I want to get a tree-formatted list of processes from ps (as when you do ps auxwwf), but only of processes that are either owned by me, or are ancestors of processes owned by me. So if I own a bash process way down the…

dirtside
- 1,551
- 5
- 17
- 22
2
votes
2 answers
In Linux, when I use the PS command, why do I see multiple lines for www-data?
I have a LAMP server that uses ubuntu 9.10, apache2, mysql5 and php5.
When I login as root through the shell, I run a "ps aux" command and see something like the following
www-data 3151 0.1 4.3 220024 31032 ? S 12:22 0:00…

John
- 7,343
- 23
- 63
- 87
2
votes
2 answers
Provide Description for a Command for 'ps' Command Visibility
So the problem I want to find a tidy solution for is that when I log into a server (I have some Solaris and RHEL instances about), I try to find out what applications are running:
$ ps -auxww | grep
And I get a nice…

Nick Klauer
- 179
- 1
- 7
1
vote
1 answer
Why does my "ps aux" command column now show gibberish?
While using ps aux to find the PID of a process, I came across some output that prevented me from doing so. I've done this before, on this same server, within the last month. Today's output looked like:
(Scroll right → → → →)
USER PID %CPU…

Robert K
- 572
- 1
- 5
- 12
1
vote
1 answer
Ubuntu ps command showing wrong values in START column
I have just noticed that my server has wrong value in START column of ps 's output. It always display 2017 value, while it should show hour:minute format. The problem is not fixed after I reboot the server.
The time of the server is…

Lan Pham
- 11
- 1
1
vote
1 answer
ps sniffing on mysql password
I am passing the password to a mysql connection via a script using :
mysql -u root -p'mypass'
so I can execute task on that line using --execute.
I have seen in many stackexchange forums that passing password through command line is highly not…

Simon Ernesto Cardenas Zarate
- 251
- 1
- 3
- 12
1
vote
1 answer
How to hide a password from ps, if it's given to a process via script or command line
So I have a certain program, which is running almost 24/7.
I have a start script I've written in bash which simply does:
./app --user XXX --pass YYY
There are a few more options, but they are irrelevant to this question.
Once run, the pass will…

Sam
- 11
- 2
1
vote
2 answers
Access /proc/$pid/exe as regular user
I am in the process of developing a custom Nagios plugin to monitor the absolute path of a few running processes.
As a root user I have always used the command 'ls -l /proc/$pid/exe to find the path but when I get Nagios to run this command(as user…

Debianuser
- 421
- 4
- 12
- 29
1
vote
1 answer
ps output is not correlated to free command?
I am getting sum of all reserved memory in KBs by using following command:-
ps aux --sort -rss | awk '{sum +=$6} END {print sum}'
OUTPUT: 14746220 i.e. 14.74GB
However free -g returns 27GB as used. Why there is a difference between the two outputs?…

Mangat Rai Modi
- 111
- 2