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?

  • pitiable_sandwich540@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    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.

    • interdimensionalmeme@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      23 hours ago

      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 ;)

    • swelter_spark@reddthat.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      23 hours ago

      Nemo, Cinnamon’s file manager, also has great built-in search. I almost never feel the need to open up Catfish.

      • pitiable_sandwich540@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        21 hours ago

        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. :)