LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2004, 06:33 PM   #1
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Rep: Reputation: 15
/usr/bin horrors


I am the worlds biggest idiot. Trying to be clever, I managed to delete both ls and less from my /usr/bin directory. How the hell can I bring them back short of a reinstall?
 
Old 07-12-2004, 06:44 PM   #2
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Well I guess that you can reinstall the coreutils (for /bin/ls) and less package again. They are normal tarballs so extracting the files from it should work also.
 
Old 07-12-2004, 07:57 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Well, I would also ask if it's possible that you may have deleted any other things from /usr/bin besides just ls and less. If so, then it may be best to do a reinstall now, because it would really be a pain to find out every couple of days that you need to recover yet another command.

On a more positive note however, reinstalls aren't actually all that bad, so long as you originally set up your /home directory as a separate partition. If you've done that, then during the reinstall, you would just want to be sure to choose the "Do Not Format" on /home when you are defining your mountpoints, and you wouldn't end up overwriting any of your existing user data.

To say it a different way, if /home is on its own partition and you don't reformat it, then a reinstall of Slack will only affect the system and root directories and files, without causing you to lose any of your personal data which lives in /home. (Naturally, if /home is merely part of / then a reinstall would wipe everything out. As an aside, I would strongly recommend that /home always be a separate partition.)

Anyway, even if you do decide it's necessary to do a full reinstall, don't feel too bad about it. When I was first trying to learn my way around Linux, I must have gone through about 20 total rebuilds (repartition, reformat, reinstall, the whole 9 yards) before I finally got my act together. In a way though, I'm kind of glad I did, because I definitely learned a lot, and my attitude towards having to do it gradually changed from one of complete fear and dread to one of total nonchalance. Heck, I ended up doing so much partitioning that now I could do it in my sleep. Good luck with it whatever your decision is. -- J.W.
 
Old 07-13-2004, 01:18 AM   #4
DeadlyMuffin
Member
 
Registered: Feb 2003
Distribution: Gentoo, Debian, Openslug, Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
Installing those packages did it. Thanks a lot for the advice. I probably would've gone through a full reinstall if I hadn't been told about those packages.
 
Old 07-13-2004, 01:24 AM   #5
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
Great you got it working but as JW said, reinstalls aren't that bad. It's not like the bleeding Win2k installer which freezes (and I'm not exagerating here) and the same bleeding point - hardware detection - about 10 times before it continues. In the end I thought, "Nope, can't be bothered"... Now I don't dual boot :P

Steve
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 10:57 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration