Questions tagged [ps]

ps is a Unix operating system command and the like used to display the running processes.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Why is value of CMD for PID 1 different depending on the flags passed to ps?

ps -ef | grep -E 'PID|init' and ps -p 1 report different strings for the CMD column of ps output. Why is one systemd and the other /sbin/init? I would have expected to just see /sbin/init. I'm running ...
0
votes
1answer
39 views

Discrepancies between “ps -f” and “ps”

We are running Red hat Enterprise 7.7 (Maipo) and for a specific oracle process I'm getting two different values under "CMD" column. See below examples: ps -p [process_id] 109401 ? 00:09:57 ...
0
votes
1answer
21 views

POSIX ps commands' output format ends with =

What does it mean by an equal sign that ps command ends with for its output format? ps -o gpid= 1111
0
votes
1answer
33 views

Linux: How to indetify what consumes 35G of system memory

currently the processes of one of usr systems are consuming 6,5G RSS: root@system:~# ps aux | awk 'BEGIN {sum=0} {sum +=$6} END {print sum/1024, "MB"}' 6575.42 MB root@system:~# If I run free -m it'...
0
votes
1answer
27 views

List all processes I can kill, so I can kill them

I need to figure out all the processes I can kill as my user (without privileges), so I can kill them. how do I do that? I just wanna kill everything I can.
2
votes
1answer
2k views

Why do I often receieve `no such process` in response to a process I want to kill?

me@me:~$ ps aux | grep -i firefox me 15413 0.0 0.0 14428 1036 pts/1 S+ 05:46 0:00 grep --color=auto -i firefox me@me:~$ kill 15413 bash: kill: (15413) - No such process Why might this ...
1
vote
1answer
200 views

How to get process command line arguments in execsnoop

I need to log the process start events with the command line arguments. There's ps au which prints the command line for the processes which are currently running. There's execsnoop which prints the ...
0
votes
1answer
437 views

Output of the “ps w” command

I am using customized OpenWRT, in which no option works for the ps command except w. When I enter ps w, it’s showing all the running processes, but if I type, for example, ps w | grep kkkk it’s ...
0
votes
1answer
359 views

Parse pstree output to list parent and child PIDs of a given process name

I am running two instances of a program called SMU, hence there will be two separate processes with the same name SMU. And each SMU process will create one (can be more than 1) child process, hence ...
0
votes
3answers
74 views

is it possible to number the output of a command in ubuntu

I'm in a Linux class and one of my assignment questions is to find out the total number of processes running on the server. I have used the ps -aux command to list all the processes but I was ...
0
votes
1answer
158 views

Process management in TempleOS: listing and killing processes?

TempleOS has different processes, according to docs/Glossary.DD.Z, There is no distinction between task, process or thread. The Fs segment reg is kept pointing to the current task's CTask. There ...
0
votes
1answer
97 views

VPS: CPU seams to be under heavy load while no process produces such load?

I recently set up a really cheap VPS mainly for backup purposes but I also wanted it to do some small, minor tasks. But because I was too interested I wanted to take a look at CPU and Memory usage, ...
2
votes
2answers
2k views

what is the SI value in powershell ps?

I am trying to find process execution information with powershell ps. There is an attribute 'SI' whose values are usually like 0, 2, 10, etc. Specifically, I typed in the following to powershell: ...
0
votes
2answers
757 views

What does `args` in Linux command `ps ao args` means exactly?

In the man page of ps, I found that -a means: Select all processes except both session leaders (see getsid(2)) and processes not associated with a terminal. and -o means User-defined format. ...
1
vote
2answers
86 views

Portable way to find all PIDs by cmdline

I want to find the PID of all processes which were run by a cmdline call which contains a certain string my_exec. For instance, with macOS or Ubuntu, open a terminal and run /bin/bash, and then in ...
0
votes
1answer
496 views

How to tell if a process is running in the host or in a docker container

I have a lot of gitlab processes, but gitlab is not installed in the host: » ps -ef | grep -c gitlab 61 Those processes, at first sight, look like normal processes: » ps -ef | grep gitlab | head ...
2
votes
1answer
193 views

Linux command to output each new process PID

Is there a linux command that will watch for new processes? My goal in this is I want to see when a new gulp command is called, get the command line executed with something like ps, then filter it ...
3
votes
2answers
2k views

Full command text with ps on cygwin?

Is there a way to get the full output from ps on Cygwin? For instance, none of the following gives me the full wget shell line, just /usr/bin/wget: $ ps -ef | grep wget Administ 9844 7780 pty1 ...
0
votes
0answers
566 views

Get cpuid for a particular process thread using ps

How do I get the ps command to output just the cpuid if I know the pid and tid? I can use ps -e -mo pid,tid,psr | grep Thread_Id to display the current cpu the thread is running on, but is there a ...
1
vote
1answer
500 views

A process is opening a tty but “ps t tty” cannot see it

See following example: [STEP 101] # tty /dev/pts/3 [STEP 102] # ssh -f -n -N -D :7070 127.0.0.1 [STEP 103] # pgrep -lf 7070 33109 ssh [STEP 104] # ls -l /proc/33109/fd/ total 0 lrwx------ 1 root root ...
1
vote
1answer
2k views

The nohup process isn't listed using `ps`

nohup can help user keeping process running after log-out. But while I log out & in again, the process python is gone. Before log out Log in again We can find the python process ...
0
votes
0answers
85 views

How can I find the PID for software where the name of the software is different from the executable?

I run "Videos" software from the Dash in Ubuntu. After some minutes the software freezes. I've tried searching for the PID of the software to kill it, but I can't find any result with these commands: ...
4
votes
3answers
55 views

Locating a process in a linux vm (it's complicated)

I have a virtualbox vm to which I can connect through a browser using localhost:8080. The network of the vm is NAT with port forwarding of localhost:8080 to vm:8080. However, logging into the console ...
0
votes
1answer
612 views

How to kill second gedit?

I executed this command: for run in {1..3} do gedit & done How can i kill second gedit? Because result of this command: ps -eo cmd,pid | grep gedit is: gedit ...
1
vote
3answers
107 views

Grep by all filenames in a directory

I want to get the process status for all services running in a given directory. Right now I can check one by one ps -ef | grep ServiceName. But is there a way to ls the directory and ps every service? ...
3
votes
2answers
388 views

Diffrent output of “ps -a” on Ubuntu and Fedora

I have noticed that the ps -a command produces different output when I run it on ubuntu "16.04" and Fedora 23. According the man page of both distribution the -a option should do : -a Select all ...
-3
votes
2answers
194 views

I need help building a regex for a grep to show only the path to running versions of java

I need help building a grep from ps -ef to return only java paths. Say we have the following runnning process: bash> ps -ef | grep java user pid# 1 1 00:00 ? 00:04:00 /path/to/java/...
1
vote
1answer
1k views

What's the equivalent of top -H -p <pid> on OS X?

I need to monitor the CPU usage of threads created by a given process. In *nix one can use top -H -p <pid>, but that not available in OS X. An equivalent of ps -eLo pid,ppid,lwp,nlwp,osz,rss,...
1
vote
0answers
624 views

Many cron -f processes on unresponsive server

My Debian server had again become unresponsive and needed to be restartet (SSH login impossible, no longer transmitted log data to another server's MySQL Database, no new FTP connections possible, but ...
0
votes
0answers
380 views

Is it possible to disable many of the default/built-in services from Mac OS X?

Looking to remove some builtin services from Mac OS X to make it into a more platable pentesting platform. For example, services like iTunes, Airplay, etc… I ran a ps on the command line and I see ...
4
votes
3answers
9k views

Can’t get Nginx to work on port 80. Works fine on any other port

I’ve just setup Homebrew’s Nginx on Mac OS X 10.11 (El Capitan). If I set my Ngnix config like this: listen 127.0.0.1:8080; listen 127.0.0.1:81; listen 127.0.0.1:75; It’ll work. ...
4
votes
2answers
2k views

List linux processes having windows

How can I list linux processes (like ps aux) but only those having X11 windows? I guess there must be some simple connection (like always in linux) between the processes and the X server. Is it ...
0
votes
0answers
477 views

Is it ok to kill the sh zombie process?

sh process is zombie but i have doubts killing it in case it will affect the parent crond(31720), since it's in an enterprise server. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
9
votes
1answer
16k views

How to get stdout of a “lost” session

I don't well what's the name of the situation, I think yesterday I closed a session with a background ipython process, but I am still able to connect to it (the process is running a web server and I ...
3
votes
2answers
178 views

DD command running for over 17 hours on external 1.5TB drive

I used dd with nohup to erase a 1.5TB disk and now I can't get feedback from the progress.. Since it's been more than 17 hours I am worried... I ran the command with the disk unmounted. The disk is ...
0
votes
0answers
34 views

Listing specific software on group of remote machine

psinfo -s \10.101.4.204 > out.txt above command displays all software installed on 10.101.4.204 I need to find only specific software installed on remote machine
2
votes
2answers
2k views

What is the difference between the processes listed by `ps` and `ps -A`?

What is the difference between the processes listed by ps and ps -A ?
0
votes
1answer
975 views

Output of the ps command and understanding the flags

Ubuntu 12.04 LTS using bash. I tried running the ps command from a Java program using the Runtime and got some unexpected output. Upon closer inspection I realized that it was the output of: ps --...
1
vote
1answer
4k views

what does CPU% means in `ps auxf` for processes with parent/child relationship?

When I use ps auxf to display process information with ASCII art process hierarchy. Processes with parent/child relation is listed as below. USER PID %CPU %MEM VSZ RSS TTY STAT START ...
0
votes
3answers
1k views

Cygwin: Get process state

When I run top in Cygwin I get: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND I would like to extract these columns for all processes: PID PPID S COMMAND ps gives PID, PPID, ...
1
vote
1answer
869 views

how to view all process details from ps –ef command

I am using the ack.pl in my bash script to search IP's in the Linux OS only for example , and only to show the problem I will give here a short example # ( ./ack.pl -Q -a -l --max-count=1 --...
3
votes
1answer
363 views

What does the suffix letter mean in the PRI column of “ps -M pid” under MacOS/X?

When I execute this command under MacOS/X: ps -M 9358 I get this output: USER PID TT %CPU STAT PRI STIME UTIME COMMAND jaf 9358 s009 0.0 S 31T 0:00.21 0:00.32 /Users/jaf/...
1
vote
1answer
947 views

How to filter processes with “ps” to match all conditions?

In Linux, if I use ps --user john -C processname, then I get all processes owned by the user and in addition all processes named processname. Is there a way to modify the behavior to get only ...
0
votes
1answer
4k views

How to get memory usage of a Minecraft server?

I am creating a Minecraft control panel at the moment and having trouble by getting the memory usage of the process. My current process: launch the server in a screen get the pid of the screen ...
0
votes
1answer
2k views

How to find the total number of processes in Unix/Linux shell script

I’m trying to find the total lines of running processes excepting the commands I’m using to create the listing. Then to parse out the userID and the PID into a new list. All within the same shell. ...
1
vote
0answers
147 views

How many volumes should I add in my btrfs?

How much overhead does a single physical partition add to a btrfs volume? ps aux | grep btrfs | wc -l results in 102. I have 4TBx4 in my NAS and 16GB RAM and Core i3 processor. The NAS also hosts a ...
2
votes
2answers
9k views

ps aux status column meaning?

On a Mac, 64 bit, osx 10.8.5, two of my ps aux output lines, plus the header, are ; $ ps aux | head USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND myuid ...
0
votes
2answers
4k views

How can I find wget processes older than one day in unix?

Using this command I can find all the processes for wget: ps -aef | grep -i wget But I want a command or a script which can provide me the processes older than one day for wget and kill them.
75
votes
2answers
11k views

Is “ps -u” Really a Bad Syntax?

IMHO ps -u shows a very useful output, much better than ps -u $USER: $ ps -u Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ USER PID %CPU %MEM VSZ RSS TTY ...
4
votes
1answer
13k views

How to print with ghostscript in silent mode

I am using the following Ghostscript command to print a postscript document: C:\Program Files\gs\gs9.14\bin>gswin64c.exe -sDEVICE=mswinpr2 testprinter.ps This command opens a Print dialog where I ...