Recent files

Post Reply
Message
Author
User avatar
Mishimainizu
Posts: 30
Joined: Sat Apr 20, 2019 2:11 am

Recent files

#1 Post by Mishimainizu »

Is there in MX Linux a way to show "Recently used files" somewhere as in Windows? (I mean files,not apps).

Thank you

User avatar
richb
Administrator
Posts: 10343
Joined: Wed Jul 12, 2006 2:17 pm

Re: Recent files

#2 Post by richb »

In XFCE there is a panel item called Places that shows recent files as well as mounted partitions. Right click on the Panel and choose Panel then Add items. Scroll down to Places and add to panel. Left clicking on its icon will open a popup and at the bottom is an item Recent Documents. Clicking on that will show recently used documents. images, etc.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
Mishimainizu
Posts: 30
Joined: Sat Apr 20, 2019 2:11 am

Re: Recent files

#3 Post by Mishimainizu »

Thank you very much richb! I had this item installed some time ago, but didn't notice the Recent Documents item.

User avatar
Jerry3904
Administrator
Posts: 21940
Joined: Wed Jul 19, 2006 6:13 am

Re: Recent files

#4 Post by Jerry3904 »

Interesting. I looked for this, and found that there is a file where the info is supposedly stored: ~/.local/share/recently-used.xbel. It's not very readable though, and I'm not sure ATM how to get it parsed.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Jerry3904
Administrator
Posts: 21940
Joined: Wed Jul 19, 2006 6:13 am

Re: Recent files

#5 Post by Jerry3904 »

There is a CLI command that lists all modified files in a certain time period

Code: Select all

find -type f -mtime -7
That shows files from the last 7 days, and you can dump that in a text file with an addition

Code: Select all

find -type f -mtime -7 > last7.txt
Finally if you are looking for something in particular, say a libreoffice file, you can do something like this:

Code: Select all

find -type f -mtime -7 | grep libreoffice > last7_LO.txt
But I don't know finally how useful any of that would be, just fooling around...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: Recent files

#6 Post by skidoo »

Some applications do not write entries to recently-used.xbel
Even if thunar "Open With" does create an entry (I haven't checked)... the handling app may, or may not, create additional entries for each additional file that is subsequently loaded via Drag-Drop or via File-}Open

A while back, I investigated the prospect of writing a script to "forensically" determine recently used (accessed) files...
and quickly realized this prospect is foiled by our (MX, and antiX, and just about every desktop linux distro) use of noatime or relatime or lazyatime mount options specified in /etc/fstab

FWIW, during an antiX/MX liveboot session, with on-demand (aka "semi-automatic" mode) persistence enabled, a slightly-modified version of the persist-save script can generate a list of recently changed (CREATED//DELETED//EDITED) files.
howto:
Copy the script to a new name (e.g. "persist-save-check")
Add "--dry-run" (and, optionally -verbose) to the rsync options
Redirect the output to /tmp/changed_list.txt
Optionally, insert into the script a tailend "myfavetexteditor /tmp/changed_list.txt" line

Post Reply

Return to “General”