We can find
which are Chromium's directories within user's home directory in this way:
find $HOME -type d -name *mium -exec echo {} \;
The result should be:
/home/<user>/.config/chromium
/home/<user>/.cache/chromium
Within the directory /home/<user>/.config/chromium/Default
we can find couple of files that could be useful:
$ ls -1t $HOME/.config/chromium/Default | grep -i 'tabs\|sess'
Current Tabs
Current Session
Session Storage
Last Tabs
Last Session
The problem is that, unlike Firefox's log files Chromium's log files are not in readable format and it is hard to separate the tab's history from the current URLs.
However, within my Current Session
I have two open tabs:
https://askubuntu.com/questions/970546/location-of-url-of-opened-tabs-of-google-chromium-in-ubuntu
- that I've opened by a bookmark.
https://www.facebook.com/
- that I've opened by a bookmark, but then I've to login and then clicked to the FB logo.
I was able to achieve correct result by this ugly command:
$ cat -e $HOME/.config/chromium/Default/'Current Session' | sed -e 's/\^@/\n/g' -e '/_\/chrome/d' | grep -Po '(http|https)://\K.*' | sort -u
askubuntu.com/questions/970546/location-of-url-of-opened-tabs-of-google-chromium-in-ubuntu
www.facebook.com/?ref=logo
But when I open another tab and browse inside for a while the output of the above command become more fuzzy:
$ cat -e $HOME/.config/chromium/Default/'Current Session' | sed -e 's/\^@/\n/g' -e '/_\/chrome/d' | grep -Po '(http|https)://\K.*' | sort -u
askubuntu.com/questions/970546/location-of-url-of-opened-tabs-of-google-chromium-in-ubuntu
spidersport.com/forum/
spidersport.com/forum/index.php?sid=59f48a87db485e3a321aedbf7de68e6a
spidersport.com/forum/login.php
spidersport.com/forum/login.php?sid=59f48a87db485e3a321aedbf7de68e6a
www.facebook.com/
www.facebook.com/login.php?login_attempt=1&lwv=111
www.facebook.com/?ref=logo
www.spidersport.com/
Yes, the result is correct, because URLs of my open tabs are listed within, but there are also presented URLs from the browsing history.
~/.mozilla/firefox/*default/sessionstore.js
is available when Firefox is closed. In case it is open check the file~/.mozilla/firefox/*default/sessionstore-backups/recovery.js
:: source.