Ubuntu – How to recover or create deleted ‘Documents’ folder in Home folder

data-recoverydirectory

I accidentally deleted 'Documents' folder and all its contents in Home folder, is there any step by step way to recover or at least recreate an empty original 'Documents' folder again? I'm using ubuntu 12.04 by the way.

Best Answer

To create a new Documents folder

Open home folder > right click > new folder. Name it Documents

If the icon is incorrect then right click on the new Documents folder > properties. Click on the folder icon, this will bring up a select custom icon window.

Browse to File System > usr > share > icons > Humanity > places > 48 & select the 1st folder_documents.svg. This should restore the icon to your Downloads folder

Then gedit ~/.config/user-dirs.dirs or browse to file. You'll see this line - XDG_DOCUMENTS_DIR="$HOME/"

edit it to this & save. Then log out/in

XDG_DOCUMENTS_DIR="$HOME/Documents"

Related Question