Announcement

Collapse
No announcement yet.

deleting the contents of /home/oznola/.Private deleted the contents of /home/oznola..

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    If you simply delete your entire home directory, it should be re-created at log in from scratch just like a new user.

    One could create a new user and log in as the new user, then - assuming you gave the new user admin group rights - use sudo to remove the entire home directory. Or use a liveUSB/CD session to delete it.

    Please Read Me

    Comment


      #17
      i just restarted the machine and logged back in. problem solved...
      “The door to the cabinet is to be opened using a minimum of 15 Kleenexes.” ~Howard Hughes

      Linux 3.5.0-21-generic, KDE 4.9.4, Plasma Netbook,
      Grand Unified Bootloader (Grub) 0.97-29ubuntu66 (Legacy version)

      Dell MINI 9, Intel Dual Core Atom (2x) CPU N270 @ 1.60GHz, 32-bits,
      STEC PATA 32GB SSD on IDE Bus, 2Gb RAM.

      Intel Mobile 945SE Express Integrated Graphics Controller with OpenGL/ES extensions

      Comment


        #18
        Originally posted by oshunluvr View Post
        Adding the "-r" made the command recursive and includes directories. If you had added "sudo" to it, likely most all files on your system would have been deleted as well. Unfortunately, "*" includes ".." which equals "up one directory."
        This is not true, * does not include . and .. and that would be insane... you can verify this by running "echo *". In fact * does not include any files the begin with a . for them you need .* (which does include . and ..). For all files that does not include . or .. you need ".[^.]* *"

        Hindsight: rm -r /home/oznola/.Private/ would have been safer as would have using Dolphin.
        It is never safe to remove a file or directory that you do not know what it does as in this case it removed the contents of the home directory.
        Originally posted by oznola View Post
        i am reading the docs for extundelete and it says it's designed to be used on an unmounted partition and then restore the files from the unmounted partition to the one that is mounted. and that one must work quickly because processes read and write files all the time..

        i am wondering if perhaps i can just some how recreate my home directory and start over without re-installing the entire system?
        Code:
        cp /etc/skel/.* ~
        will restore all the needed files (.bashrc for example) everything else will be created as it is needed.
        Last edited by james147; Feb 26, 2013, 03:49 AM.

        Comment

        Working...
        X