www.webdeveloper.com
Results 1 to 2 of 2

Thread: Linux rm

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    59

    Linux rm

    I accidentally ran the command

    Code:
    rm -r -f /*
    FML

    Does anyone know how to recover? I canceled it 2 seconds after i ran it. But some things aren't working..
    EG
    Code:
    ls -l
    bash: /bin/ls: No such file or directory
    Im sure there is more things not working.

    Any help would be appreciated.

  2. #2
    Join Date
    Feb 2011
    Location
    Baltimore, MD
    Posts
    12

    Unhappy Prognosis: Not Good

    Many answers here: http://lmgtfy.com/?q=lunix+recover+deleted+files

    Unless you have a backup, if you've written data to the disk, you're probably not going to be able to recover the files without some good technical skills (the links above provide a variety of different methods of doing it based on your circumstances).

    Your best bet would be to copy off your important stuff to a backup, reinstall the OS and restore the needed files from the backup you just created.

    Anything else is risky as you don't have a list of the files that were deleted to know if you've got them all recovered/restored or not. This can result in system instability, possible server security issues and other possibly bad things that come with not knowing for sure if your server is working correctly or not.

    - Brian

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles