report a snapshot of the current processes. Useful when trying to determine the status of the running process in a specific moment.
Questions tagged [ps]
114 questions
280
votes
1 answer
What do the STAT column values in ps mean?
In the STAT column of ps there are a load of letters that don't really make much sense. What do they mean? Here's an example of ps aux | head : USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 27176 2960 ? Ss Sep20 0:02…
Oli
- 299,936
48
votes
4 answers
How to check my niceness?
Is there any way to check my nice lvl? I did try with ps , but for some reason the output does not show the column NI which is meant to show the lvl priority if I'm not wrong. ps -fl -c F S UID PID PPID CLS PRI ADDR SZ WCHAN STIME TTY TIME CMD 0 S…
sebas
- 600
37
votes
3 answers
ps aux for long charactered usernames shows a plus sign
I'm trying to get an output from ps aux so that it looks like: giovanni 28331 4381 0 15:43 ? 00:00:00 sshd: giovanni@pts/1 giovanni 28346 28331 0 15:43 pts/1 00:00:00 -bash giovanni 28646 28346 0 15:43 pts/1 00:00:00 ./example.sh However, running…
Giovanni Mounir
- 473
27
votes
3 answers
How to prevent ps from truncating the process name
Following command outputs only first 25 characters of the process name (cmd) on the screen. How do I get it to display the full process name? ps -eo pid,cmd,etime
hvs
- 373
- 1
- 3
- 4
23
votes
3 answers
Output only the column under COMMAND of `ps` command in terminal
I know that we can easily find the following: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND of all the running processes by using the command: sudo ps aux My, question is that, is it possible to show the output of only the column under…
Raphael
- 8,145
- 7
- 37
- 51
20
votes
5 answers
Find children of the process
is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?
Mohammad Reza Rezwani
- 10,746
18
votes
1 answer
How to find the running network services and the port and user
I want to find a list of all network services running on my system, including details of the port and services and the users. I know that I need to use netstat, ps and fuser. but I don't know how to write the command. Do I need to write a shell…
Mohammad Nikkhou
- 217
17
votes
1 answer
What does "ps -ef|grep processname" mean?
I want to know exactly what this particular command ps -ef|grep processname means and how it works. I know that this should be associated with processname which we want to search for, but I don't get the prefix part; what do -ef and | (pipe) do and…
PatilSaheb
- 183
15
votes
4 answers
Why the PID values are not continuous?
If we type ps -ef then we get a list of processes. Why are the PID numbers not continuous?
Vasu Dev Garg
- 193
14
votes
2 answers
List only processes that are in suspended mode
to list processes that are running in the background, one can type: ps -ef or ps -aux but how to list processes that are suspended, let's say I had some process in the foreground and just suspended (either with bg <jobid> or Ctrl+z ) how to I get to…
Algina
- 310
14
votes
1 answer
what is the meaning of ax in ps ax
I know when you type sudo ps ax , that list all of the running process on the system. But want to know what is ax? what ax stand for? Is that abbreviation ?
Mohammad Reza Rezwani
- 10,746
12
votes
2 answers
Which to use of ps ef or ps -ef?
I see there is a difference in output between ps ef and ps -ef . What is that difference, are both commands correct or which is preferred?
Niklas Rosencrantz
- 3,344
12
votes
2 answers
Running a single executable with sudo adds two processes in process list
I wrote a program that captures the packets from the network interface. As it listens the network adapter, I need to run it with sudo . The question is, why when I run it, does it add two processes to the processes list? Note : lwdpi is my program…
Ebrahim Ghasemi
- 197
12
votes
1 answer
Difference between ps -aux and ps aux
What is the difference between ps -aux and ps aux ? I wonder it's more than a mere matter of syntax and "portability". Which one is better to use in Ubuntu? Despite there are some similar question, I'm interested in this specific difference.
floatingpurr
- 627
11
votes
2 answers
Values of WCHAN in ps
What does the WCHAN (waiting channel) mean exactly? what can be its value and what those values represents? I tried to find them but got nothing.
Chirag Acharya
- 111
- 1
- 1
- 4