我的本地电脑上安装了三个浏览器:firefox,chrome,opera。
find / -name 'Local Storage'
/home/debian8/.config/opera/Local Storage
/home/debian8/.config/google-chrome/Default/Local Storage
用于存储数据的物理目录可以在find / -name 'Local Storage'
中找到opera和chrome,而不是firefox。
哪个物理目录是firefox的localstorage目录?
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage
default permanent temporary
为了追踪物理目录,数组以这种方式存储在firefox的本地存储中。 1.在firefox中打开https; // www.yahoo.com 2.将数组与js一起存储在firebug - console
中var arrDisplay = [0, 1, 1, 1];
localStorage.setItem("menuTitle", arrDisplay);
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage 默认永久临时
很可能是在默认目录中。
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default
https+++www.yahoo.com
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com
idb
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb
301792106ttes.files 301792106ttes.sqlite-shm
301792106ttes.sqlite 301792106ttes.sqlite-wal
sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-shm
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
sqlite> .exit
sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite-wal
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
sqlite> .exit
sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/default/https+++www.yahoo.com/idb/301792106ttes.sqlite
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
database index_data object_store unique_index_data
file object_data object_store_index 源码> select * from database; 测试| https://www.yahoo.com|1|1473647521683690|0|49152 源码> select * from index_data; 源码> select * from object_store; 源码> select * from unique_index_data; 源码> select * from file; 源码> select * from object_data; 源码> select * from object_store_index;
对menuTitle
没有任何线索。
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent
chrome indexeddb+++fx-devtools moz-safe-about+home
很可能是indexeddb +++ fx-devtools目录。
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools
idb
ls /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb
478967115deegvatroootlss--cans.files 478967115deegvatroootlss--cans.sqlite
sqlite3 /home/debian8/.mozilla/firefox/4qfwwwo5.default/storage/permanent/indexeddb+++fx-devtools/idb/478967115deegvatroootlss--cans.sqlite
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> .table
database index_data object_store unique_index_data file object_data object_store_index
sqlite> select * from database;
devtools-async-storage|indexeddb://fx-devtools|1|1475141158242996|0|49152
sqlite> select * from object_store;
1|0|keyvaluepairs|
menuTitle
存储在firefox安装目录中的位置?
答案 0 :(得分:7)
在现代Firefox中,localStorage
数据存储在webappsstore.sqliteDoc中,您可以在profile folder中找到该数据。
在您的情况下,它看起来像你想要的:
/home/debian8/.mozilla/firefox/4qfwwwo5.default/webappsstore.sqlite
/storage/default/...
个文件夹用于Indexed DB个文件 - 与localStorage不同。