Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

 
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.