I need to reinstall Ubuntu but keep ./Downloads
, ./Documents
folders of previous installation.
Everything else needs to be in pristine condition like first time installation
that means no .gitconfig, .gitignore, .gemrc, .npmrc, .bashrc, .bash_profile, and other settings file and previous installed apps, files or folders except
./Downloads
and.Documents
.
Removing these files manually looks a bit tedious, Is there any better way?
I tried the solutions provided here and here but that solution keeps the home
folder intact, thus keeping many unnecessary files/folders from previous installation.