Linux 在文件中存储当前firefox/chrome URL

Linux 在文件中存储当前firefox/chrome URL,linux,bash,url,firefox,google-chrome,Linux,Bash,Url,Firefox,Google Chrome,我想将当前的firefox/chrome URL存储到一个临时文件中。有没有办法使用bash控制台或C编程语言来实现这一点?当前Firefox会话存储在sessionstore.js中,可以在Firefox配置文件文件夹中找到

我想将当前的firefox/chrome URL存储到一个临时文件中。有没有办法使用bash控制台或C编程语言来实现这一点?

当前Firefox会话存储在
sessionstore.js
中,可以在Firefox配置文件文件夹中找到