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
Related videos on Youtube
Author by
Eugene Sirko
Updated on September 18, 2022Comments
-
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 over 12 yearsInstead of creating folders, just logout/login.
-
Rinzwind over 12 yearsSystemfiles in your home get recreated if they are missing when you start a new login! So remove the files you added yourself.
-
Eugene Sirko over 12 yearsunfortunately didn't help...I removed my icons, but the new ones didn,t appear...after relogin and even after restart
-
-
Eugene Sirko over 12 yearsWell 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 over 12 yearsWhat directories (folders) ?
-
Eugene Sirko over 12 yearsWhen 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 over 12 yearsI added an answer, I thought from my read you were in the data recovery mode , sorry
-
Eugene Sirko over 12 yearsThe 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 over 8 yearsAbsolutely Perfect.
-
Mookey almost 8 yearsThis helped me greatly. I mistakenly deleted, and restoring did the trick. Thank you sir!