The Bookmarks is a UTF-8 plain text file in JSON
format:
$ file ~/.config/google-chrome-beta/Default/Bookmarks
.config/google-chrome-beta/Default/Bookmarks: UTF-8 Unicode text
To view the bookmars use this command:
less ~/.config/google-chrome-beta/Default/Bookmarks
or with jq
, a lightweight and flexible command-line JSON processor:
sudo apt-get install jq
and run with this command to see the whole structure:
jq '.' ~/.config/google-chrome-beta/Default/Bookmarks
or with this command to see an entry, eg. checksum
:
jq '.checksum' ~/.config/google-chrome-beta/Default/Bookmarks
or all bookmarks in the bookmark bar:
jq '.roots.bookmark_bar.children' ~/.config/google-chrome-beta/Default/Bookmarks
The History is a binary file in SQLite format 3
:
$ file ~/.config/google-chrome-beta/Default/History
.config/google-chrome-beta/Default/History: SQLite 3.x database
To query the database, Chrome must be completely closed. Or you have to create a copy of the file and use that copy.
To view the history you need to install sqlite3:
sudo apt-get install sqlite3
Start sqlite3 with:
sqlite3 ~/.config/google-chrome-beta/Default/History
and list all tables:
sqlite> .tables
downloads meta urls
downloads_url_chains segment_usage visit_source
keyword_search_terms segments visits
or to see all downloads:
sqlite> SELECT * FROM downloads WHERE 1;
Alternatively, a GUI may be used:
sqlitebrowser
sudo apt-get install sqlitebrowser
and start with:
sqlitebrowser ~/.config/google-chrome-beta/Default/History
sqliteman
:
sudo apt-get install sqliteman
and start with:
sqliteman ~/.config/google-chrome-beta/Default/History
lscpu
will provide the info you're looking for.
lscpu | grep "cache"
to filter out only cache info. This will result in something like:
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
Best Answer
My "recently" is 5 minutes =)
Breakdown
find
search for files in a directory hierarchy
.
search in the current folder and all subfolders
-type f
search only fort files
-amin 5
File was last accessed 5 minutes ago.
Or perhaps you mean the recently used files in your Desktop Environment, than you need something like
Breakdown
awk
pattern scanning and text processing language
-F"file://|\" "
define two field separators,
file://
and"
/file:\/\//
only lines with
file://
are interesting{print $2}
the path is in column 2