Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Restoring /usr/lib

    I'm running FC3. I accidentally wiped out all the libraries in /usr/lib (bad parameters in the mv command). Is there ANY way to get them back or to restore them?



  2. #2
    Linux Enthusiast
    Join Date
    Feb 2005
    SE, Stockholm
    Well, if you used the mv command, you should have all the files left somewhere else. Or was it more a rm -fr ?
    Anyhow, since you state that you used the mv you should be just fine redoing the mv but from your previous destination directory, otherwise, run the FC3 installation, and tell the installer to repair/reinstall your system. All settings should be preserved.

  3. #3
    Actually, I was moving files TO /usr/lib. I basically did something along the lines of: mv lib* /usr/lib/*

    Obviously that last * was a bad idea because instead of copying the files over, it erased both the files I was trying to copy and all the files in /usr/lib

    Oh wait, there is a zsh directory in /usr/lib and it seems to have a LOT of libs. Is it possible it copied everything in there?


  4. $spacer_open
  5. #4
    Quite possible. My /usr/lib/zsh directory only contains another directory, which has a zsh directory with lots of .so files.
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts