Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, it's the stupidest thing ever. I mean to type mv -f blah ./*, but what I actually type is mv -f blah /*.
Luckily, it seems the mv died on trying to overwrite /boot, which was right after /bin, which was the first alphebetical directory.
So here's the situation I am in right now - I have shell access, even though bash was removed along with everything else, but since it's still running, I still have it.
I don't have ls, mount, chmod, or any of the other /bin utils.
By chance, I happened to have a webserver elsewhere on the internet that I was able to FTP to and transfer a .gz of the entire /bin directory into my /root.
But, since /bin doesn't exist any more, and mkdir is inside of it, I can't make /bin, nor do I have mv to put the gz file into the directory, though I do have gzip, by way of the same ftp connection.
I have another older version of Mandrake locked away on an unmounted partition, which I can't mount because I don't have that either.
I would really like to avoid totally reinstalling the system, especially since it seems like I can *almost* fix it.
If you have any suggestions, they would be appreciated.
No MC. Originally, I was hoping to unpack the rpm with MC in it. That's what led me to recognize that rpm and every other useful tool in linux is in the bloody /bin directory.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
ok, so sftp to your webserver, copy over /bin/mkdir then ./mkdir /bin then cd /bin sftp back to your webserver's /bin directory and get everything good luck
Well, my setup is a little unusual since it isn't really my server. It is a Virtual Private Server, which means that I have access to things like /bin, but I can't enable/disable services. I can use ssh, and in fact I am using it, but sftp must be disabled for some administative reason.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.