BASH Daily — Get FireFox Bookmarks With The Terminal
Basically:
That’s it!
You will need to install sqlite3
if you don’t have it installed already.
There might be another way to get FireFox’ bookmarks, but I still need to investigate it.
If this script doesn’t work on your system it might be because of the paths used in the code. Try to locate places.sqlite by doing this:
find ~/ -name places.sqlite
Or go directly to ~/.mozilla directory and try to find your profile directory… That’s where the sqlite with your bookmarks should be stored.
Also, I am copying the places.sqlite into a tmp directory because when FireFox is running you cannot access it because it is locked. I will try to find an alternative but for now, it does the job and it is very fast.