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.

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


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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