Skip to contentSkip to conversation

source for ps command

DISCUSSION Naveen Kumar Pagidimarri 2 participants 2 messages Jul 5, 2001

lore
Share & tools
lore
#0 lore raw

Hai All,

Please tell me where can i get the source of ps command or

related source code for the implementation of ps command.

Advance Thanks for all

Naveen

#1 lore raw
Quoted 3 lines · Naveen Kumar Pagidimarri

Please tell me where can i get the source of ps command or

related source code for the implementation of ps command.

If you don't get an answer it might be that:

- your question is off topic for this list
- the answer is too trivial to tell
- nobody had time to answer it

In any case don't post the same question within 30 minutes.

Getting the source of a package is simple. On an RPM compatible system (Red Hat, SuSE, Mandrake):

erik@merijn:~ >rpm -qf which ps
procps-2.0.6-5
(get the procps-2.0.6 SRPM from CD or download it from the web)

On a Debian system it's even easier:

erik@arthur:~ >dpkg -S which ps
procps: /bin/ps
erik@arthur:~ >apt-get -qq source procps
dpkg-source: extracting procps in procps-2.0.7

Erik

Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/