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

learn more… | top users | synonyms

5
votes
2answers
223 views

why ps -ef show the time like this

When I run the ps -ef command I receive something like this: root 26728 26725 99 Sep25 ? 1184018564-02:43:14 java -jar /root/TaskManager.jar I need to understand why the time is shown ...
0
votes
0answers
185 views

PStree with memory use?

Is there any utility out there for linux that will give me a PStree with memory use per process? I guess it's possible in theory to grab a pstree with pids, then comb ps itself for the memory use for ...
0
votes
2answers
81 views

How do I get my Unix ps version number?

I tried these, all without success: ps --version ps -version ps -v ps -V man ps, searching for version information Specs: Mac OS X 10.8.2 MacBook Pro 2009
-1
votes
1answer
439 views

Why do processes on Mac not add up to total physical memory?

Running ps -ax -O 'rss user %mem should summon all the processes that are currently contributing to either Active or Wired , in the Mac definitions of "Active + Wired + Inactive + Free = Total ...
1
vote
3answers
1k 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. ...
0
votes
2answers
292 views

How to kill all process of a program?

Sometimes I get some problem with Skype or Netbeans. So, when I want to kill all processes of them and restart them the only way I know is to perform $ ps aux | grep skype get all process id ...
1
vote
1answer
64 views

Running ps with clauses as AND instead of OR

I am looking to see if a specific process is running as a specific user. For which I can do this ps --no-headers -C command -o user | grep user Which is pretty neat, it however gets slightly ugly ...
17
votes
5answers
10k 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
2answers
708 views

How to get the current timestamp when using 'ps' in a Bash script?

I am writing a shell script that gets all the current processes running, and pipes them into grep to filter out the ones I need. But I also need it to give me a timestamp, either when the ps occurs, ...
0
votes
3answers
527 views

Linux Memory Displays Half Used But No Processes Seem to Be Using It

I am running a Java script on a Fedora Core Release 6 server (Linux 2.6.19-1.2911.6.5.fc6xen x86_64) and am concerned about a lack of memory. The box has 2 GB of memory in total. Running "free -tm" ...
0
votes
2answers
2k views

ps warns me about bad syntax with “aux” options

When I attempt to run the command ps with the flags/switches/options aux I get the following message. If I run the command without grep, no message is displayed. What am I doing wrong? ps -aux | grep ...
8
votes
5answers
5k views

Why does ps aux displays a number instead of a username?

Running ps aux just gave me the following output: ... www-data 26254 0.0 0.7 27304 3544 ? S 15:07 0:00 /usr/sbin/apache2 -k start 1001 25807 0.8 0.8 48444 4332 ? Sl ...
11
votes
4answers
14k 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 ...
0
votes
1answer
50 views

Listing processes for a certain timeframe

ps -fu username lists all processes currently running. Is there a way to list all processes that were running in a time period ? like, the ones that ran yesterday (and are no longer running)
0
votes
2answers
172 views

memory usage by using ps in linux

I am trying to compare memory usage between my program and sample program which is given by using ps in linux mine and sample is written by c++ and I am not sure how to compare how much memory those ...
2
votes
3answers
173 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
2answers
789 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 ...
1
vote
1answer
120 views

pdf file resists converting to ps and printing

I'd like to print this file: http://florian-konnertz.de/public/Psychology_of_Computer_Programming.pdf I cant find out how I do that here. I tried on our Kyocera FD 2000 beside from pdf viewers from ...
7
votes
5answers
5k 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 ...
2
votes
2answers
1k views

How to convert PDF to ASCII Postscript so the contained text can be searched/replaced?

According to Chapter 3.2 of the PostScript Language Reference, "there are three encodings for the PostScript language:ASCII, binary token, and binary object sequence". We've been generating PDF files ...
1
vote
1answer
2k views

Unix ps -l priority

Why does unix ps -l whows one number in column "PRI" but in same time ps -o pri shows another number? P.S. cpu and nice are zero for those processes
4
votes
1answer
6k views

Unix : List children processes for a given pid

What I need is, given a process id, list all his children without any clutter (table header, other columns than the pid) What I have is : ps h --ppid $PID Which gives me: 26277 pts/13 S+ ...
0
votes
1answer
858 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 ...
7
votes
3answers
6k views

Why does my system hang when I run ps, w and possibly other commands?

I don't know why, but I cannot run the ps or w commands on my Ubuntu 10.04LTS machine. I did a trace for both, and both stopped when reading part of the same file. Here's the result of running ps ...
2
votes
2answers
653 views

CMD in ps command in linux

Under CMD, I was wondering what the /1 or /2 ... are? What do they indicate? I couldnt find it in the man page. In general, does anyone have a good understanding of the CMD column that they could ...
0
votes
2answers
1k views

How to Split a Big Postscript file (3000 pages) into one individual file per page (using Windows 7)? [duplicate]

Possible Duplicate: GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files. Hi, I'm having trouble doing the following: I have a big PDF file that I ...
2
votes
2answers
4k views

GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files

I'm trying to do the following with ghostscript: Turn one multipage PDF file (about 3,000 pages, 200mb file) into: One file per page of the PDF, and convert each (page/file) to EPS or PS (post ...
0
votes
1answer
1k views

how to check process tree in hpux, just like ptree in Solaris?

how to check process tree in hpux, just like ptree in Solaris ?
3
votes
2answers
4k views

Is it possible to 'hide' a process from the listing of `ps` or `top` on Linux

First, I presume that if this is possible it would need to be done as root (or as a user who shares root's UID of 0). How can a process be launched so that it does not show up in a ps aux or ps ef or ...
1
vote
1answer
3k views

In ps -ef, what information does the fourth column show?

For example, ps -ef Display full information about each of the processes currently running. UID PID PPID C STIME TTY TIME CMD hope 29197 18961 0 Sep27 ? 00:00:06 sshd: hope@pts/87 hope 32097 29197 ...
5
votes
1answer
13k 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 ...
1
vote
1answer
371 views

Groff ignores line breaks from my shell

I've been using groff to make ps files for printing with the -man flag. If I want to convert anything else such as a header file or just the output from ls -l or other program the line breaks are ...
3
votes
1answer
283 views

Why is the reported user “root” when a “normal user” executes “ps ux” on OS X? Is this normal behaviour?

I am running OS X 10.6.1 . When i am logged in as a normal user of group staff and do a ps ux it lists my ps ux command as being run by root: snies 181 0.0 0.3 2774328 12500 ?? S ...
69
votes
3answers
98k 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 ? ...
22
votes
5answers
32k 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?