I used the command rm -rf ~/.Trash/* to empty the trash but when the command is executed, all my files in Download folder are deleted and all my Ubuntu settings are changed. Can anyone please help, how to get back my files and settings back?


Gut feeling is you may have had a space after the ~. Is it really only the Download folder ? You should back up everything under home regularly. Add a new user with a similar name and tweak everything back, then copy their ~ to yours.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.