There are some directories in the Firefox profile which take space and which I have found to remove manually via a command:
These above are a part of a huge alias but only these two are relevant, that's why I'm posting only them.
However, there are two directories which I'd like to keep. I tried setting their rights to be undeletable, but with these undeletable directories the terminal refuses to complete the entire alias. I had found somewhere on the internet a way to "delete FILES except these" but it didn't work for directories (not even with a / after the names to indicate they're directories and on top of that that screwed up the whole alias and the terminal was skipping it to execute the next alias in the ~/.bashrc file.
So, I need a way to make the terminal omit the directories with these names (I've put then in a code tag, so that they don't get parsed as URL addresses):
Code:
rm -rfv ~/.mozilla/firefox/tjdaag57.default-release/storage/default/https* && rm -rfv ~/.mozilla/firefox/tjdaag57.default-release/storage/default/http*
However, there are two directories which I'd like to keep. I tried setting their rights to be undeletable, but with these undeletable directories the terminal refuses to complete the entire alias. I had found somewhere on the internet a way to "delete FILES except these" but it didn't work for directories (not even with a / after the names to indicate they're directories and on top of that that screwed up the whole alias and the terminal was skipping it to execute the next alias in the ~/.bashrc file.
So, I need a way to make the terminal omit the directories with these names (I've put then in a code tag, so that they don't get parsed as URL addresses):
Code:
https+++duckduckgo.com
&&
https+++twitter.com