Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 was messing around with the man page files whereupon I accidentally deleted ls.1.gz, which describes the man page for ls.

Is there somewhere where I can download a copy of this file which I can plonk back into /usr/share/man/man1? Or is there any other way I could recover this file?

To add: this is on an Ubuntu Server 12.04.

share|improve this question

There may be an easier way, but I assume reinstalling the package ls belongs to would do the job.

You can which ls to find the path to ls
Then dpkg -S /usr/bin/ls (assuming that is your path to ls)
Followed by sudo apt-get install --reinstall packagename

share|improve this answer

Found the Ubuntu Manpage Repository which contained the manpage for ls in addition to many others, including versions for different versions of Ubuntu too.

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.