Recovery of deleted folders in home folder

13,718

OK, to restore deleted directories

edit ~/.config/user-dirs.dirs ,

gedit ~/.config/user-dirs.dirs

it should look like this:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

If that fails, install and run Ubuntu Tweak

http://ubuntu-tweak.com/

Screen Shot

Share:
13,718

Related videos on Youtube

Eugene Sirko
Author by

Eugene Sirko

Updated on September 18, 2022

Comments

  • Eugene Sirko
    Eugene Sirko over 1 year

    By accident I've removed some folders (they were empty) in my home folder. I've created a new ones but they doesn't have proper icons etc... how can I recreate them step by step?

    • mikewhatever
      mikewhatever over 12 years
      Instead of creating folders, just logout/login.
    • Rinzwind
      Rinzwind over 12 years
      Systemfiles in your home get recreated if they are missing when you start a new login! So remove the files you added yourself.
    • Eugene Sirko
      Eugene Sirko over 12 years
      unfortunately didn't help...I removed my icons, but the new ones didn,t appear...after relogin and even after restart
  • Eugene Sirko
    Eugene Sirko over 12 years
    Well I don't want to recover any files because they didn't exist in my folders. Folders were empty. I just want to recreate home folders like images, videos etc...
  • Panther
    Panther over 12 years
    What directories (folders) ?
  • Eugene Sirko
    Eugene Sirko over 12 years
    When You open Your home folder You can see folders like Documents, Images, Videos etc... and I mean these folders. I've deleted them and I want to recreate them with proper icons for each.
  • Panther
    Panther over 12 years
    I added an answer, I thought from my read you were in the data recovery mode , sorry
  • Eugene Sirko
    Eugene Sirko over 12 years
    The first method didn't worked, terminal gave me some errors about missing files during saving user-dirs.dirs, but ubuntu tweak worked. Thank You!
  • x__x
    x__x over 8 years
    Absolutely Perfect.
  • Mookey
    Mookey almost 8 years
    This helped me greatly. I mistakenly deleted, and restoring did the trick. Thank you sir!