How to recover accidentally removed /bin/ls binary

I have mistakenly deleted the ls executable from the /bin folder.

Can I recover it or install it through the terminal?


You could check which package brings ls binary using dpkg:

$ dpkg -S /bin/ls
coreutils: /bin/ls

dpkg will show you that it is package coreutils. Now you only need to reinstall it:

$ sudo apt-get install --reinstall coreutils