ps

Super-user privileges for Chromium browser

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 3452315 3452313 20 0 33884428 16712 do_sys S ? 0:00 /usr/lib/chromium/chromium –type=zygote –crashpad-handler-pid=3452306 –enable-crash-reporter=,built on Debian …

Total answers: 1

The difference between `ps axjf` and `ps -axjf`

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 almost same. What are the specific differences between them? …

Total answers: 1

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 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/lib/bluetooth/obexd (deleted) 2007 1 Sl /usr/bin/python3.10 (deleted) 2101 1346 S /usr/bin/python3.10 (deleted) 2199 1 Sl /usr/bin/python3.10 (deleted) …

Total answers: 2

Does the p(rocess)s(napshot) support service exclude?

Does the p(rocess)s(napshot) support service exclude? I want to use ps to show all processes except the some of them – exclude info about ssh or kthreadd processess. Am I able to indicate processes I want to exclude? The only supported way for now – non ps – is grep -v. Asked By: palmasd1 || …

Total answers: 1

pstree does not show every process

pstree does not show every process I opened a terminal made sudo su run the nano editor in the background by running it as nano&. I tried to find the newly started nano process in the process list. To do that, I typed ps aux|grep -i nano -> Saw the newly created nano but when …

Total answers: 2

Exclude ps itself from ps output

Exclude ps itself from ps output I want to get information about all processes in the system except the ps process itself. That is, something like: ps –no-headers –pid 1111 -N where 1111 is the process id of the currently running ps command. I tried something like ps –no-headers –ppid $$ -N However, this does …

Total answers: 4

Why does ps aux | grep <something> return extra hit

Why does ps aux | grep <something> return extra hit Let’s say I want to know the PID of kate editor that is currently running (kate is just an example, it works as described for many programs). So, I execute ps aux | grep kate. Here is the output: seifert 35523 0.0 0.2 448724 25144 …

Total answers: 3

ps -aux -U "user" not filtering on user as expected

ps -aux -U "user" not filtering on user as expected I have a quick question. I would regularly like to list all the processes running under my account on Linux. After reading the manpage, I thought I’d have to write: ps -aux -U "joshua" to get all processes running under user account joshua. However, this …

Total answers: 1

ps aux | grep command doesn't display categories

ps aux | grep command doesn't display categories When I pipe to grep after a ps aux command it isn’t showing the categories at the top of the list (USER, PID, %CPU, %MEM, etc) Is there something I can do about this? ps aux –sort -rss | grep $USER | head -n 4 user01 1610 …

Total answers: 1

How can I correctly calculate the sum of memory used by all processes?

How can I correctly calculate the sum of memory used by all processes? There recently was a couple of questions asking why Ubuntu is seemingly using more memory than accounted for by processes/services – here and here. However, I have the exact opposite situation. On my server, the memory used by all processes seems to …

Total answers: 1

How to tell ps to use more space for cmd?

How to tell ps to use more space for cmd? I’m using this command to see my top processes: ps -eo pid,ppid,cmd,%mem,%cpu –sort=-%mem | head -10 However, its CMD column cuts the path. For example I see this result: PID PPID CMD %MEM %CPU 583875 583874 node /Company/Projects/A 7.4 6.2 1597 1594 node /Company/Projects/A 7.4 …

Total answers: 1

Equivalent to "ps -p"

Equivalent to "ps -p" I’m using a board without the full ps command installed. What I need is ps -p equivalent (something that sets $? if a specific PID is found or not). Is there a way to accomplish this with another command (like top)? ## wannabe_watchdog.sh MY_EXE="$1" _pid=-1 while test 1 -eq 1 do …

Total answers: 1

How may I uninstall the "ps" (process status) utility on a *nix system?

How may I uninstall the "ps" (process status) utility on a *nix system? I have heard that ps (process status) can store users’ commands history, like what shell history does. Source: comment on StackOverflow, Note that if the goal is to hide passwords in command line arguments, they’ll still be visible through ps – Benitok …

Total answers: 1

ps: show only processes owned by root, without showing kernel threads

ps: show only processes owned by root, without showing kernel threads I know how to hide kernel threads from ps: /bin/ps –pid 2 –ppid 2 –deselect -o user:10,pid,stat,pcpu,pmem,tty,start_time,cmd and I know how to show only processes owned by root: /bin/ps -U root -o user:10,pid,stat,pcpu,pmem,tty,start_time,cmd but how do I show only processes owned by root, while …

Total answers: 1

How to display process with status -R

How to display process with status -R I’m trying to output all processes with STAT field -R. I tried following command but it is not best matching. Any other way to display?? ps aux |grep R Asked By: ShbBB || Source Add the r option: ps auxr This limits the selection to running processes only. …

Total answers: 1

How to see process ID of TCP?

How to see process ID of TCP? When I want to see the process ID for an application I do ps -aux | grep <application>. For example, when I do ps -aux | grep ssh I see the process ID for SSH. But when I do ps -aux | grep tcp it outputs nothing, even …

Total answers: 2

ps command: how does the '-q' option work?

ps command: how does the '-q' option work? According with the ps command, for the -q option Through the man is indicated: -q pidlist Select by PID (quick mode). This selects the processes whose process ID numbers appear in pidlist. With this option ps reads the necessary info only for the pids listed in the …

Total answers: 1

Network Activity on Mac OSX Monterey not showing all processes

Network Activity on Mac OSX Monterey not showing all processes My network activity is showing that I’m downloading huge amounts of data that are not showing up in my activity monitor. Is there a program I can use that actually works? I tried launchctl list but I didn’t know what to do after that. I …

Total answers: 1

Sorting Linux ps command

Sorting Linux ps command I am trying to print a process tree of only my login on a Linux server. I have used: ps -e –forest to print the process tree, but it gives the process tree of all other users in Linux. What can I do to sort only my own login’s process tree? …

Total answers: 1