linux - I accidentally moved my /lib64. How do I fix this?

07
2014-07
  • One Two Three

    For some stupid reason, I thought it was a good idea to do sudo mv /lib64 /old_lib64. Now I can't do ANYTHING (not opening files, not starting new terminals, not even ls). The only thing I can do now is within this browser which I already have open. (I'm pretty sure if I close it, it won't start again!).

    Now what do I do?

  • Answers
  • Big Chris

    If you've got a LiveCD for your OS you can boot to that and mv it back to its original location

  • Ryan Gooler

    Try this:

    LD_LIBRARY_PATH="/old_lib64" mv /old_lib64 /lib64
    

    If you need a terminal, hold ctrl + alt + shift and press 1


  • Related Question

    redhat - How to find out release version of an Linux OS?
  • guerda

    Possible Duplicate:
    How do I find out what version of Linux I’m running?

    I need to find out some information about the server os I'm working on.

    The release version (e.g. 9.04 if Ubuntu or 4 if RHEL) is important to me and the command uname doesn't show it.

    $ uname -a
    Linux xxxxxxx 2.6.9-78.0.22.EL #1 Fri Feb 31 25:71:00 EDT 2009 x86_64 GNU/Linux
    

    So: How to get this information via a commandline command?


  • Related Answers
  • Russell Heilling

    Most (if not all) modern distributions will include the lsb_release command.

    heillinr@mojojojo:~$ lsb_release -r
    Release:    9.04
    heillinr@mojojojo:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 9.04
    Release:    9.04
    Codename:   jaunty
    

    Should give you what you are after :)

  • Dan Gravell

    What do you have in /etc/*-release? I have /etc/lsb-release which contains:

    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=8.10
    DISTRIB_CODENAME=intrepid
    DISTRIB_DESCRIPTION="Ubuntu 8.10"
    

    http://linux.about.com/cs/linux101/g/lsbrelease.htm

  • sntg

    Try

    cat /etc/lsb-release

  • Doug Harris

    I didn't know about lsb_release.

    My method for RPM based systems was:

    $ rpm -qa | grep release
    redhat-release-5Server-5.3.0.3
    redhat-release-notes-5Server-25
    
  • hayalci

    in addition to lsb-release (which is available as lsb-release package under debian), you can look at /etc/debian_version(for debian and derivatives) and /etc/issue for most other distributions.