I recently thought it would be a good idea to start hiding files and folders and encrypting things. All was going well until curiosity struck me. I wondered while I was staring at my Desktop and I was in my Desktop directory in the terminal looking at the files on my Desktop. What I was wondering was: "Hhmmm, what if I just cd to the home directory one directory back and run a sudo mv Desktop .Desktop command" So I ran: sudo ../Desktop .Desktop Making my Desktop a hidden file.
Sure enough, my Desktop disappeared right in front of me and my new desktop became my home directory. I didn't like this, as I was not excepting my home directory to be my Desktop as a result. I tried to name it back. sudo .Desktop Desktop. Unfortunately for me, it doesn't bring my Desktop back to my Desktop if that makes sense. The directory is there the way it should be, but my actual workspace is still the home directory. This is weird. Does anyone know how to fix this?