Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ps]

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

1
vote
1answer
21 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 ...
0
votes
0answers
19 views

What does COMMAND enclosed by `()` mean in ps output?

I see things like (wget) in the ps output COMMAND column without command line options. Normally, there should be command line arguments. But those with () does not have any options. Does anybody know ...
0
votes
0answers
54 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
67 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
0answers
10 views

listing CentOs active processes's using ps -ef

I want to trace the process in my CentOs, when I run Jps [root@hadoop1 ~]# jps 5042 ResourceManager 4485 NameNode 5560 Jps 4684 SecondaryNameNode then I want to find 4485 (NameNode) using ps -ef ...
0
votes
1answer
40 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
26 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 ...
-2
votes
1answer
93 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
78 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, ...
0
votes
0answers
7 views

How to create a tree structure in comand line that displays only the background processes/jobs

I want to know how can I create a process tree structure that displays only background processes. I've tried with pstree, but I'm not sure I can specify this condition for pstree; I think it's a bit ...
0
votes
2answers
325 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
0answers
18 views

Unable to filter processes by command name for specific command names

Basically, I want to group processes by command name and then access them later to find out total memory used by a command name. I came up with this:- (ps -o comm -A | sort | uniq | while read ...
1
vote
2answers
120 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
46 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
76 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
133 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 ...
1
vote
2answers
453 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
40 views

Is there any way to resume the terminated process automatically?

When I killed a process, use: kill -STOP xxxx; then I resumed the process with: kill -Cont xxxx; I just wonder, if there is any way to detect automically the process STAT and change the stopped ...
0
votes
0answers
383 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
250 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 ...
0
votes
1answer
812 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
78 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
49 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
509 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
93 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
284 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
151 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/...
0
votes
1answer
370 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
387 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
351 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
2answers
6k 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
943 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
332 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 ...
1
vote
1answer
2k 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
150 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
30 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
1
vote
2answers
1k 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
825 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
3k 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
743 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
443 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
184 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
513 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
1k 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
138 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
7k 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
3k 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
10k 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
10k 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 ...