Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found myself in a situation where I need to reinstall the ps binary. I accidentally copied the binary to another location and immediately deleted it. The binary is no longer in the bin directory.

I have attempted to reinstall the coreutils package in Ubuntu, but ps was not reinstalled; is there another package where ps comes from?

share|improve this question
up vote 17 down vote accepted

Using dpkg -S /bin/ps will tell you that this program is in the procps package. Reinstall it using apt-get install --reinstall procps.

share|improve this answer
+1 for the command-line solution ;) – lgarzo Jun 1 '12 at 12:15

Using the Packages website

The site comes in handy in such situations.

Example: search package contents for ps reveals the procps package.

Using the command-not-found feature

Type the command misspelled and search the suggested packages:

$ ps-
No command 'ps-' found, did you mean:
 Command 'psi' from package 'psi' (universe)
 Command 'psc' from package 'sc' (universe)
 Command 'psf' from package 'tcm' (universe)
 Command 'ps' from package 'procps' (main)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.