Questions tagged [ps]
For questions pertaining to ps, a command for printing information about running processes. Use this tag for questions about ps itself or questions about issues arising from using the ps command-line utility.
673 questions
1 vote
1 answer
54 views
Kylin - Monitor CPU by process name
I am new to Kylin , I would like to monitor the CPU stats for a group of processes which share the same name. Let's pretend that the process name = BOB.exe First idea is to use this type of format, ...
0 votes
1 answer
45 views
Why SMTP command is running always?
Almost always I can see many smtp processes in ps aux command output like this: postfix 924674 0.4 0.0 44460 9212 ? S 18:54 0:00 smtp -t unix -u -c postfix 924675 0.2 0.0 44460 ...
4 votes
1 answer
154 views
How to show the pstree all the way down to each of a list of PIDs?
% ps -ax | grep nvim 17593 ?? 2121:43.42 nvim --embed 17674 ?? 0:26.66 /Users/me/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server 94363 ?? 1:...
4 votes
2 answers
300 views
Custom separator in ps
I have this integrated in a bash-script on an outdated Debian 10. ps -axo "%p ;;; %a" Works well, output is like 10161 ;;; [kworker/0:1-cgroup_destroy] 12173 ;;; [kworker/2:0-events] 12379 ;...
-4 votes
2 answers
354 views
Linux kill command returns "No such process"
In the below shell script I have list of process IDs which need to be killed. When killing a process I am getting kill: 1234567: no such process error even after checking if the process id existence ...
0 votes
2 answers
105 views
why container process on Debian Trixie are not more visible from host?
On Old Debian 12, I can see container process using ps from root. On Debian 13 not, The situation: On container ps -ef|grep -i ora oracle 230 1 0 Aug10 ? 00:00:00 /usr/lib/systemd/...
0 votes
0 answers
70 views
ps ax and -o fd
According to ps(1), ps doesn't support fd. even I didn't find fd in task_struct of kernel. How can I find fd of a program? َUPDATE: FD means File Descriptor. When I get query from services such as : ...
0 votes
4 answers
124 views
top memory utilization with less COMMAND width
I am using below command to check top memory utilization in Linux. ps aux|head -1; ps aux| sort -nrk 4 |head some of the PID having COMMAND with more than 1000 chareters (e.g. Java processes). I want ...
-1 votes
1 answer
109 views
Why a process can own 3 names in Linux?
We migrated an app, changed its name in Makefile from flex_camera to flex_camera_lucid. After deploying it to the target board(the original app is removed), as shown in the following screenshot, we ...
0 votes
2 answers
133 views
how do I prevent script continuation when the process run queue is full?
Environment: shell is BusyBox bash 3.2 running in what started-out as Ubuntu Server many years ago, but has since been tweaked a great deal by the manufacturer of this particular box to become a ...
7 votes
2 answers
423 views
How can I find location of PRI in /proc
I have sshd with PID of 1957: mohsen@debian:~$ ps ax -o pid,nice,pri,cmd |grep 1957 1957 -2 21 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups According to above, my nice number is -2 ...
0 votes
2 answers
91 views
procps' watch together with ps command truncates command lines
The setup is I have two folders now under my current directory, busybox-1.36.1 and procps-4.0.4, and I also have a service languagetool running with DynamicUser=yes. Now observe the different ...
0 votes
0 answers
37 views
How does printf() actually work? [duplicate]
When I execute the c file #include <stdio.h> #include <stdlib.h> int main(){ printf("before the system call. I am too excited!\n"); system("ps"); ...
0 votes
1 answer
83 views
How long has a process been idle since it last ran?
I am interested in finding out the last time a process was scheduled to run. That is, how long it has been sleeping, since it last ran. When was it last active? Basically, a generalization of what the ...
1 vote
1 answer
83 views
Why read process doesn't show up in ps -ef
I open two terminal windows. In one, I run: $ read foo I don't press RETURN, so read is blocking. In the other terminal window, I search for the process: $ ps -ef | grep foo user 95292 94814 ...