Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Deleted root directory- d'oh!

  • 10-04-2004 11:14PM
    #1
    Moderators, Arts Moderators Posts: 36,204 Mod ✭✭✭✭


    So I was logged as root, in /root directory, deleting a list of files from a remote directory e.g.
    rm /some/other/directory/fileslikethis*
    
    I accidentally put in a space and typed
    rm /some/other/directory/fileslikethis *
    
    and so deleted everything in /root, besides the subdirectories.
    I'm using an ext3 filesystem, so there's no chance of undeleting.

    Can anyone tell me roughly what files are in /root by default and which, if any, are vital for booting. If I do a reinstall/rescue, should I be able to recover most of it?

    And yes, I know, I should be more careful when deleting things as root. The files in question had root-only permissions, if that's any excuse!

    [edit]thankfully, the hidden dirs in /root still all seem to be there, so no major damage done[/edit]


Comments

  • Registered Users, Registered Users 2 Posts: 1,419 ✭✭✭nadir


    I dont think there is much important in /root, apart from like config files of apps run by root, like .ssh .xauth, and what have you.
    should be ok.


  • Closed Accounts Posts: 2,525 ✭✭✭JustHalf


    For a minute there I thought that was the old:

    # cd /; rm -rf /

    trick.


  • Moderators, Arts Moderators Posts: 36,204 Mod ✭✭✭✭pickarooney


    It could quite easily have been. Sure, the config files should regenerate themselves over time... I reckon.


Advertisement