Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I found myself in a situation where I needed to copy the ps command though I suppose that I use mv instead of cp. I copied the binary to the incorrect location and immediately deleted it. Looking back to the source in bin\, I couldn't find the binary anywhere.

I attempted to reinstall the coreutils package in Ubuntu but ps hasn't come back to me; is there another package where ps comes from?

share|improve this question
add comment

2 Answers

up vote 6 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
add comment

Using the Packages website

The http://packages.ubuntu.com/ 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
add comment

Your Answer

 
discard

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.