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

learn more… | top users | synonyms

0
votes
0answers
4 views

running command creates several PID services instead of 1 docker ubuntu

I'm running this command inside docker: sudo docker exec -it php7-fpm bash -c 'nohup php /www/site/artisan queue:listen >> /www/site/nohup.log 2>&1' I don't understand why this command ...
0
votes
2answers
3k views

How to get a list of background processes in freebsd

I need to get a list of background processes in freebsd, but i don't know how. I've tried to use ps command, ps -ax ps -e -j but I haven't found properties which describe background processes. +...
3
votes
3answers
38 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
0answers
29 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: ...
1
vote
2answers
995 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
1answer
45 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
26 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
48 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
25 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/...
52
votes
7answers
81k views

How can I know the absolute path of a running process?

If I have multiple copies of the same app on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish from the others?
2
votes
2answers
3k views

watching output of “ps aux | grep blah” in tmux will not work?

I am trying to run this - watch "ps aux | grep myShittyProcess" in a tmux session. This process myShittyProcess was also started in a tmux session. The ps aux works without watch command. But as ...
0
votes
1answer
16 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,...
0
votes
0answers
15 views

What is the difference between RSS and SZ?

I'm trying to monitor the memory usage of an application through: ps aux | grep db2fmp | grep $USER | grep -v grep | awk '{print $1, $2, $3, $4, $5, $6}' and got the following result for instance: ...
26
votes
7answers
33k views

ps: How can i recursively get all child process for a given pid

How can I get the entire process tree spawned by a given process displayed as a tree and only that tree i.e. no other processes? The output could e.g. look like 4378 ? Ss 0:10 SCREEN ...
3
votes
2answers
664 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. ...
128
votes
3answers
189k views

ps aux output meaning

When typing ps aux, what does each column of the output mean? For example $ ps aux timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine root 29505 0.0 0.0 38196 2728 ? ...
0
votes
1answer
1k views

How can I convert a PostScript file into a PDF where text can be selected?

I'm on a Mac. I need text to be selectable in applications such as Preview.app, so that I can highlight it. If I open the PS file directly in Preview, I cannot select text. I have already tried ...
1
vote
0answers
77 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 ...
7
votes
2answers
2k views

Multiple pages per sheet (PDF)

I use the following ghostscript commands pdf2ps input.pdf - | psnup -pA4 -4 >> output.ps ps2pdf output.ps output.pdf rm output.ps to merge multiple pages (in this case 4) from input file to ...
0
votes
0answers
132 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 ...
2
votes
2answers
118 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
63 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 ...
0
votes
1answer
100 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
65 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 ...
10
votes
5answers
9k views

How to find out from which folder a process is running?

In *nix you can use ps to see which process are running. But if an executable has multiple homonimous files in a device, we can't figure where it was invoked from. This is slightly different from my ...
0
votes
0answers
17 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
298 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 ?
22
votes
5answers
22k views

Excluding grep from process list

I have cobbled together a command to return the process ID of a running daemon: ps aux | grep daemon_name | awk "{ print \$2 }" It works perfectly and returns the PID, but it also returns a second ...
0
votes
1answer
218 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
562 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
274 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, ...
3
votes
1answer
110 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
148 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 --...
2
votes
4answers
3k views

How to select processes by command name when using ps in Mac OS X

In Linux, I use ps -C command_name to select processes of specified command name. But it doesn't work in Mac OS X. I read the the man page of ps carefully, but just can not find any option to do this. ...
1
vote
1answer
83 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
0answers
574 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
594 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. ...
3
votes
2answers
1k views

Finding all not responding tasks from the command line in Mac OS X?

I know I can do ps -aux | xargs kill etc but I want to list the PIDs of all tasks that are not responding (the red ones in Activity Monitor). What command I can execute in the terminal to list these ...
1
vote
0answers
94 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 ...
0
votes
1answer
187 views

Interpretting COMMAND column of `ps aux | grep redis`

When I run ps aux | grep redis, with a running redis server, the COMMAND column shows redis-server *:6379. 6379 is the port number, but what's the *: for? Is it saying 'Hey, this is a port number", or ...
0
votes
2answers
1k views

csh script to return number of process running

I want to set the number of a particular process that are running to a variable. The first line of the csh script below is the problem as it sets the variable "number" as ps aux | grep -c fiji ...
0
votes
2answers
997 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
8k 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 ...
3
votes
1answer
3k 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 ...
1
vote
2answers
62 views

two processes are listed for one shellscript?

I have a shell script which does somewhat simple. #!/bin/sh do something boring... When I execute the shell script like this, $ nohup sh mysh.sh > /null/dev/ 2>&1 & I see there are ...
1
vote
1answer
89 views

Show last 5 opened processes in terminal?

I am trying to have a terminal showing the last 5 processes opened. This is helpful for my debugging. At this point I have watch ps -ef --sort=start_time This works fine but it shows all processes ...
0
votes
1answer
259 views

USER field in ps command(android env)

In android environment, What does USER in the ps command indicate? ps USER PID PPID VSIZE RSS WCHAN PC NAME root 1 0 748 608 c0267708 0001b95c S /init Here ...
2
votes
3answers
268 views

grep -c gives inconsistent outputs

I am trying to determine the number of processes that are running via the following command line: ps aux | grep -c 'Xvfb :1' When the process "fiji :1" is not running I sometimes get a value of 0 ...
0
votes
1answer
89 views

What does ps axuwfw return?

I am getting strange output including my old makefile output and process tree when running below command on linux ps axuwfw Also, what is the usefulness of the following command and how does it ...
13
votes
1answer
28k views

In UNIX, what are the Ss, Sl, and Ssl proccess types I see with ps aux?

When doing a ps aux command, I see some process listed as Ss, Ssl and Sl. What do these mean? root 24653 0.0 0.0 2256 8 ? Ss Apr12 0:00 /bin/bash -c /usr/bin/python /var/...