locate
is a command I’ve used in the past, but now, fresh installed with sudo apt get locate
it doesn return anything.
locate --version
returns
locate (GNU findutils) 4.10.0
, from 2024
or, have I forgotten something?
locate
is a command I’ve used in the past, but now, fresh installed with sudo apt get locate
it doesn return anything.
locate --version
returns
locate (GNU findutils) 4.10.0
, from 2024
or, have I forgotten something?
I search for files dozens of times per day, it’s largely how I navigate between folders.
And often advanced searches like only this root folder, in reverse order of accessed time, or only folder
On windows I use void tools everything but nothing like it compares in speed and ease of use on linux.
It’s one of my many roadblock to transition to linux.
Have you tried RTFM? :P
Jokes aside afaik you could do everything you mentioned with sort, find (with -type f, -printf and -mtime) and grep (filtering via regex with the -e flag).
Alternatively you could try KDE’s file explorer dolphin (or even just its search utility kfind) as a graphical alternative.
My point is switching to linux is not quick or easy, but there are few really impassable roadblocks (games with shitty kernel level anticheat for example) and there is a high likelyhood someone in this community has encountered your problems aswell and migjt even know a solution.
using find to sort all pictures in /pics/ by inverted (i.e., most recently accessed first) access time, and filtering only those with an exposure time between 1/20 and 1/100 seconds
find /pics/ -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \ -exec exiftool -ExposureTime -T {} \; -exec bash -c ' file="$1" exposure="$2" # Convert exposure to decimal if [[ "$exposure" =~ ^([0-9]+)/([0-9]+)$ ]]; then num="${BASH_REMATCH[1]}" denom="${BASH_REMATCH[2]}" exposure_val=$(echo "$num / $denom" | bc -l) else exposure_val="$exposure" fi # Filter by exposure between 1/100 and 1/20 seconds if (( $(echo "$exposure_val >= 0.01" | bc -l) )) && (( $(echo "$exposure_val <= 0.05" | bc -l) )); then atime=$(stat -c %X "$file") # Access time (epoch) echo "$atime $file" fi ' bash {} $(exiftool -s3 -ExposureTime {}) | sort -nr
In voidtools everything it would be
pic: path:"C:\pics" sort:da-descending ExposureTime:1/20..1/100
But actually doesn’t work because “ExposureTime” is only available as an sorting order not a filter but you get the gist ;)
Ah yeah okay, I see, that would be quite tedious to implement in bash. Everything looks pretty neat. :D
Buuut I just looked at KDE’s search framework filter options (used by dolphin if you press <crtl> + f ) and it seems it is indeed possible to search/filter by exposure time with dolphin or via directly in the cli.
I have to try this !
Nemo, Cinnamon’s file manager, also has great built-in search. I almost never feel the need to open up Catfish.
Yeah, i like nemo a lot, i use it on my main machine when i need a gui, because it has not as many dependencies as dolphin. And it does not feel as “bloated” as dolphin. It does one thing (be a file explorer) and does well. :)
Seems like a good and useful workflow for sure. Don’t know if something equivalent exists, maybe it doesn’t.
I’d personally use
find
for this, but it is a command line tool, and while I have memorized some of the more common options (directories-only would be-type d
for example), I’d have to look at the manpage for more advances options. It’s not hard exactly but it’s not easy-to-use GUI software for sure.I’ve taken to using chatgpt to make me the more advanced find queries, before on linux I would ONLY use
find /path | grep -i somenames
So that’s already an improvement, if still a bit tediousThe thing about everything is that it’s so ergonomic, fast and powerful.
Being able to search anything and sort everywhich way with the click of a button
Check out this sublime search syntax (this not even half of it ! )
And the re-ordering by columns, and there are just SO MANY columns you can add, like search by EXIF camera exposure, no problem !
I really wish there was something as good as “everything” on linux, it’s just awesome.
Oh that’s pretty cool! I does seem like a shame to not have something like that on Linux.
Maybe it could run on something like wine ? But if there’s not something like… whatever it is that thing that makes WizTree faster than WinDirStat, then it would probably work in a very slow compatibility mode
Maybe? It’ll almost certainly be worse (or not work at all maybe) than on Windows.