mozilla firefox default directory

Asked by princen

i wanna know how to access any "default" directory in mozilla firefox since the directory is $HOME/.mozilla/firefox/xxxxxxxx.default/history.dat
and every user has a different set of characters before the .default. how can i access it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tim Bosse
Solved:
Last query:
Last reply:
Revision history for this message
Best Tim Bosse (timbosse) said :
#1

from a terminal,

cd ~/.mozilla/firefox/*.default/

* is a wildcard. If the user has multiple random default directories, but you are editing a specific file, you could do something like:

#! Do not really run this command.
echo "blah" >> ~/.mozilla/firefox/*.default/bookmarks.html

It will append a line to all bookmarks.html within all default folders.

for my computer, all home directories are under /home, so I could do something like:

ls -ld /home/*/.mozilla/firefox/*.default/

and it will list all directories matching those wildcards.

Revision history for this message
princen (spurchampion) said :
#2

Thanks Tim Bosse, that solved my question.