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
2 answers

cat: pid.txt: No such file or directory

I have a problem with cat. I want to write script doing the same thing as ps -e. In pid.txt i have PID of running processes. ls /proc/ | grep -o "[0-9]" | sort -h > pid.txt Then i want use $line like a part of path to cmdline for evry PID. cat…
beginner
  • 3
  • 2
-1
votes
1 answer

Where and what is conf.ps? Asked when I input the command ps

When I write ps on the command line (mac) I get config file [conf.ps] not found Any ideas on what this conf.ps is or why suddenly ps is not working? Thanks
Sol
  • 87
  • 3
  • 10
-1
votes
2 answers

Shell Script : Grep usage

I'm trying to kill a background process 'sleep 600'. For that I got the following script which is working fine. ps -ef | grep "sleep 600" | grep -v grep | awk '{print $2}' | xargs -I{} kill {} I would like to know what does 'grep -v grep' do?
Alna
  • 65
  • 7
-1
votes
1 answer

How to write processes to an XML file with Powershell?

Exporting processes to a CSV file seemingly takes a snapshot and then just writes it out. Yet the XML variant creates a log file which it seemingly writes to indefinitely. How can I write the results of the csv.ps1 script to an XML file? csv.ps1…
Thufir
  • 8,216
  • 28
  • 125
  • 273
-1
votes
1 answer

Powershell Script to check C: drive capacity and write to CSV file

I'm trying to get C:\ total size and the free space, but it is not appending to CSV file. Tried using DeviceID and Devicetype, not sure which one is true $path="C:\server"…
Zee
  • 1
  • 2
-1
votes
1 answer

nohup process shown in ps but not in top

I ran a python script say script.py as follows: nohup python3 script.py & Now, a process ID is given to me, and the following message comes: $ nohup: ignoring input and appending output to 'nohup.out' Now I tried to see top, which shows python3…
Mooncrater
  • 4,146
  • 4
  • 33
  • 62
-1
votes
2 answers

Bash, display processes in specific folder

I need to display processes, that are running in specific folder. For example, there are folders "TEST" and "RUN". 3 sql files are running from TEST, and 2 from RUN. So when I use command ps xa, I can see all processes, runned from TEST and RUN…
-1
votes
1 answer

bash echo replacing character with escape charackter

I am trying create top command by myself. I stucked at point where i read list of running processes IFS=$'\n' p=$(ps -A -o %cpu -o vsz -o time -o %c --sort -%cpu | head -3 ) for i in $p do echo $i done; But when I try echo lines for some…
-1
votes
1 answer

What exactly is doing ps -aux in terminal?

Command ps statically lists all processes. What exactly is doing -aux option? a - all processes u - user x - execute Something more?
John Friday
  • 115
  • 1
  • 10
-1
votes
2 answers

How do I kill a process once I've successfully identified the PID in a script?

I have a bash script that needs to kill a specific PID that can be obtained by: ps -A | grep -m1 apcagent | awk '{print $1}' The above code identifies the PID of apcagent... and now I want to kill it within my bash script. Suggestions? Ideas?
David Allie
  • 127
  • 2
-1
votes
1 answer

unix:I am not a sudo user \usr\ucb\ps auxwww

I am not a sudo user sudo \usr\ucb\ps auxwww is giving me an error message restricted command or requested user not allowed. I am using auxwww to get the complete line of the process. It would be great if anyone can help me in this. Thanks in…
-1
votes
1 answer

compare process list before and after running bash

Trying to compare the process list before and after running a bash script of tests. Having trouble, since ps returns 1, and I'm not sure how to compare the before and after when I have them. Ideally, it would look something like this. Forgive the…
-1
votes
1 answer

Find ProcessorId and Cpu Usage of all running processes

Background I want to find the cpu core id and utilization of each and every process running in my system. I have used ps -eF to get cpu core id and ps -aux to get cpu utilization. Query I want to know, is there any way to get both the things using a…
Shri
  • 7
  • 1
-1
votes
1 answer

Any Linux command similar to PS but instead logs process activity?

I'm having a hard time trying to word this correctly (partially why I can't get proper Google results) so I'll explain what I'm looking for. A while back we stumbled across an issue at work where mount.cifs would freeze. When this happened, if we…
-1
votes
1 answer

python: recreating system process tree from ps command in a dictionary

I'm new to python and I'm trying to recreating in a python dictionary the processes hierarchy like the unix pstree does. Unfortunately I cannot use the wonderful psutil library cause I don't have permissions to search into /proc path. Did somebody…
chew23
  • 1
1 2 3
38
39