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.
655
questions
0
votes
1
answer
25
views
How to analyse cause of memory usage not shown by htop
How can I best debug the following issue from here on?
I have a
python application
running in a podman container which has
plenty disk I/O due to a numpy memmap of two huge files, one input file ...
0
votes
0
answers
16
views
How to print only parent processes during the snapshot of the current processes report?
I want to list all active processes and describe main features of them in text file by script.
I want to get only parent processes so I can identify if the service exists at all.
But there're cases ...
-2
votes
1
answer
61
views
list tree of a specific proc
I have a command to list the tree of a specific process number. So I did this:
ps f -u "${USER}" --pid 1234 -eo command,pid,ppid,tty | awk 'NR <= 1 {print; next} !/awk/ && $0 ~ ...
4
votes
1
answer
471
views
ps: invalid option -- 'p'
I'm using Yocto Project (honister) to build my OS image. When I'm trying to use vscode ssh extension, I'm getting an error:
> ps: invalid option -- 'p'
> BusyBox v1.34.1 () multi-call binary....
3
votes
1
answer
472
views
Why is one process ps command showing spaces around a directory instead of slashes?
I'm trying to debug a failing legacy process monitor that searches processes that are running. I determined it is being caused by some mysterious linux behavior. The process being ran is /opt/my/path/...
0
votes
1
answer
78
views
process ID of process launched with system command
Suppose I open a shell on ubuntu OS, then open a software such as matlab via
matlab &
In the matlab GUI, I do a system command
system('/path/to/my/cppprog') % <-- PID of this running program?
...
-1
votes
3
answers
53
views
"The rest of the line" How setup ssh client console to show all (/px aux) java process line to know the name of the java file?
I have 3 java process running on my host - i access the host by a ssh client. Some one of that process freezed and i need kill that pid process to re-start it
I know the name of the file, but i dont ...
3
votes
1
answer
270
views
Don't truncate the COMMAND column in ps
I want to list process by their executable name, using the comm column. But it always gets truncated even when it's the last column:
$ ps -C systemd-tty-ask-password-agent -o %cpu,%mem,comm
%CPU %MEM ...
0
votes
1
answer
81
views
ps -e converts process name to lowercase
ps -e converts uppercase process names to lowercase. I could not find an explanation of that behaviour in the man page or online and I'm not good enough at source code reading to figure this out from ...
7
votes
1
answer
798
views
Super-user privileges for Chromium browser
After apt-get install chromium and running it on Debian 12,
ps alx | grep -e ^F -e ^5.*chromium returns:
F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
5 1000 ...
0
votes
0
answers
153
views
How to identify which process is causing a high memory consumption?
I am running a virtualized Arch Linux machine.
From time to time, it shows a high memory consumption and I do not know the reason because basically, the machine is sitting idle.
# ps aux --sort=-%mem ...
0
votes
0
answers
49
views
Finding the WCHAN value
This is running on AIX version: 7, release: 2, on powerppc.
I have a process that is hung, and the output of ps -ef -o THREAD is:
USER PID PPID TID ST CP PRI SC WCHAN F ...
1
vote
1
answer
144
views
The difference between `ps axjf` and `ps -axjf`
I'm trying to get a deeper understanding of the ps command in linux.
I'm confused when using ps axjf and ps -axjf when I find they seem to have different meanings in the manual but their output is ...
9
votes
2
answers
532
views
ps -o pid,ppid,stat,exe -e | grep deleted has "(deleted)" appended to the executable path
ps -o pid,ppid,stat,exe -e | grep deleted
generates output like this:
1777 1346 Sl /usr/bin/python3.10 (deleted)
1778 1346 Sl /usr/bin/python3.10 (deleted)
1825 1327 Ss /usr/...
0
votes
2
answers
188
views
i3 command to toggle picom that greps ps for "picom" works when it should fail, as "picom" is in the command and shows up in "ps" output
I have this line in my i3 config:
bindsym $Super+Shift+F10 exec --no-startup-id ps aux | grep -q '[p]icom' && killall picom || picom
It runs a shell command (everything after --no-startup-id ...