Score:0

Accidentally created a /usr folder in my downloads. Can I delete it?

sy flag

I was installing firefox from builds following this tutorial: https://support.mozilla.org/en-US/kb/install-firefox-linux

and when downloading one of the files from from github I did wget [url] -P /usr/local/share/applications Instead of putting it in my applications folder (which I am now realizing I don't actually have) I guess it just created that folder in my downloads folder. Now i have a folder ~/Downloads/usr/local/share/applications and it has a lock on it because I guess I made it owned by root instead of me. Am i good to delete it since its not the same as my normal /usr file or will it mess things up?

Using ubuntu 23.04

Score:1
cn flag

Yes, you are good to delete it. It is not a system directory.

Score:0
es flag

First, change ownership of all files and directories in that subtree to yourself:

cd ~/Downloads
sudo chown -R $USER usr

Now you can inspect that complete ~/Downloads/usr subtree and delete it when you are sure that there is nothing in there that you want to keep:

rm -rf ~/Downloads/usr

(or use a graphical file manager of your choice)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.