Questions tagged [ps]

ps is the UNIX command for retreiving process information.

From the Linux User's Manual:

DESCRIPTION
   ps displays information about a selection of the active processes.

By default, ps displays the current processes owned by the user executing the command and attached to the same process group as the shell that launches it. On most UNIX systems, the command
ps -A (or ps -e) will display information about all processes running on the system.

See also:
[unix] tag info
[process] tag info
[fork] tag info


  • For questions about the Postscript language, please use the tag instead.
  • For questions about the windows power shell, please use the tag instead.
585 questions
-1
votes
1 answer

This is what my (ps -xa | grep mongod) command returned, and I don't know what it means:

My-MacBook-Pro:~ peter********$ ps -xa | grep mongod 52360 ?? 0:01.43 mongod 52484 ttys000 0:00.00 grep…
Peter.Ward
  • 7
  • 1
  • 6
-1
votes
1 answer

What does sh -c "ps -l" mean in linux?

My Command Interpreter is bash shell.After opening terminal on my OS(cent OS), I have executed following commands: scenario 1 $sh -c "ps -l" UID PID PPID TIME CMD 3038 2577 2504 00:00:00 bash 3038 2992 2577 00:00:00 ps scenario…
Jhansi Rani
  • 449
  • 1
  • 5
  • 11
-1
votes
2 answers

how do I get the pid of a specific process

I am writing a PHP script that connects to a remove server using SSH. what I need to do is to check if a specific process is running or not so that I can terminate it. I am using the phpseclib. following code connects to the server and lists the…
M Reza Saberi
  • 7,134
  • 9
  • 47
  • 76
-1
votes
3 answers

What do I do instead of grep'ing the output of ps?

Everyone knows how annoying this is: [mybox:~ #] ps aux | grep myservice root 2273 0.0 0.0 4360 760 ? Ss 18:06 0:00 /usr/sbin/myservice root 18590 0.0 0.0 4100 788 pts/2 S+ 21:21 0:00 grep myservice you get…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
-1
votes
1 answer

Server not able to take request

I have website working fine before. But now its not able to connect to the server(I believe that is the problem). But its strange that the message not able to connect to the server is not coming and its keep connecting... for infinite time(its been…
Subhransu Mishra
  • 3,035
  • 11
  • 40
  • 47
-2
votes
2 answers

Adding multiple files with one command

I tried to give a sample of a list of my titles. Here it is: '197. Module Introduction.txt' '198. Our Starting Setup.txt' "199. What's So Complex About Forms.txt" '200. Dealing With Form Submission & Getting User Input Values.txt' '201. Adding Basic…
user258081
  • 301
  • 2
  • 8
-2
votes
2 answers

How to find if process is running or not?

I have created the following bash script to find out if process is running or not ps -ef | grep process_name if [ $? -eq 0 ]; then echo "Process is running." else echo "Process is not running." fi However, the script is always returning…
meallhour
  • 13,921
  • 21
  • 60
  • 117
-2
votes
1 answer

hijacking terminal stdin from python

Is there a way in python to hijack the terminal stdin? Unix only solutions will do fine. I'm currently writing a small wrapper around top as I want to be able to monitor named processes, e.g. all running python instances. Basically I'm calling pgrep…
cpaitor
  • 423
  • 1
  • 3
  • 16
-2
votes
1 answer

Determining which TTY a program uses

I have a few questions. One, how would one determine the TTY a program uses, and then passing it as a argument to another program? Also, I'm using the writevt program and i'm sending a string to a TTY device. It works fine, but doesn't use the…
user2411434
  • 109
  • 1
  • 4
-3
votes
1 answer

ps server still running heavily after all worker has completed

I use tensorflow cluster to speedup training, I don't know why ps server still running heavily after all worker has completed?
-3
votes
1 answer

Valid user processes in Windows XP

I was doing a lab to remotely list processes running on a VM Windows XP machine. I was able to run the command, but forgot to take a screenshot. After that I logged in as another user and kicked out the old user logged in. Now there is a question…
user629034
  • 659
  • 2
  • 11
  • 30
-3
votes
1 answer

Process listing on a jailbroken iPhone

I have jailbroken an iPhone 6 with ios version 9.3.1 by pangu's solution. After install OpenSSH, I tried to list all processes are running by the ps command, and bellow is the result that I got: PID TTY TIME CMD 1925 ttys000 0:00.04…
evp
  • 1
  • 3
-4
votes
1 answer

Scripting: I need to check users against some groups WSERVER

With a list of users (I need to take all the users of the domain) , check if they are still part of those groups in the domain: GROUPS TO CHECK Red Blue Black
r.jara
  • 11
  • 1
-4
votes
3 answers

ps command in linux

I'm a newbie to unix-like. And I met a weird issue that I really cannot find answers by searching. #!/bin/bash me=`basename "$0"` echo $(ps -e | grep "$me" | wc -l) ps -e | grep "$me" | wc -l After executing that bash script, the echo shows me 2,…
0PT1MU5 PR1ME
  • 45
  • 1
  • 11
-4
votes
2 answers

How to get all process ids with memory usage greater than

I need to get all process ids which have memory usage greater or lower than predifined number. For example get id where memory (rss) usage grater than 10MB and then using this id kill each process. Thanks
uftsyo
  • 1
  • 2
1 2 3
38
39