LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I deleted /bin/ls in slackware 10.1 (https://www.linuxquestions.org/questions/linux-software-2/i-deleted-bin-ls-in-slackware-10-1-a-391053/)

swatward 12-09-2005 05:44 PM

I deleted /bin/ls in slackware 10.1
 
I accidentally Cp'd over the ls in slackware 10.1
how can I get it back or reinstall it. It is also a remote box that i access
through SSH so its kind of hard to have physical access. I could copy ls through Knoppix, but that is a little difficlult. Any suggestions?
thanks

Finlay 12-10-2005 01:48 AM

the ls command is contained in the
coreutils-5.2.1-i486-1.tgz package

ssh into the box then
wget ftp://ftp.slackware.com/pub/slackwar...2.1-i486-1.tgz

then

installpkg coreutils-5.2.1-i486-1.tgz

need to be done as root, that will replace the lost file.
if you are sure that is the only file then you can simply extract it from that tgz instead of installing the package

swatward 12-10-2005 03:04 PM

Great, works perfect, thanks a lot


All times are GMT -5. The time now is 05:41 PM.