296
you are viewing a single comment's thread
view the rest of the comments
[-] andrewth09@lemmy.world 56 points 1 month ago
[-] eskimofry@lemmy.world 34 points 1 month ago

Corporate users in shambles because mlocate.db cannot be generated without root.

[-] Evotech@lemmy.world 7 points 1 month ago* (last edited 1 month ago)

Idk why but I've always been a locate enjoyer myself. But find has more usecases.

[-] InternetCitizen2@lemmy.world 2 points 1 month ago
[-] Evotech@lemmy.world 13 points 1 month ago* (last edited 1 month ago)

Find can find stuff based on permissions or other variables and interact with files, like delete etc

Locate is just a database of filenames

[-] jaybone@lemmy.world 3 points 1 month ago

Grep. Couldn’t live without find exec grep.

[-] fmstrat@lemmy.nowsci.com 3 points 1 month ago

You rarely need find with grep if you man grep. Grep does it all.

[-] jaybone@lemmy.world 0 points 1 month ago

Grep is going to find all .java files in /home/user/workspace? And then conditionally search them? Not so sure about that.

[-] fmstrat@lemmy.nowsci.com 9 points 1 month ago

grep -R --include=\*.java "pattern" /home/user/workspace

[-] Australis13@fedia.io 1 points 1 month ago

Indeed! Covers most of the instances where I would otherwise have to use find.

this post was submitted on 18 May 2024
296 points (95.7% liked)

linuxmemes

19717 readers
308 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS