this post was submitted on 18 May 2024
39 points (95.3% liked)

linuxmemes

20408 readers
961 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 4 months ago* (last edited 4 months ago) (1 children)

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

[–] [email protected] 0 points 4 months ago (1 children)
[–] [email protected] 2 points 4 months ago* (last edited 4 months ago) (1 children)

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

Locate is just a database of filenames

[–] [email protected] 0 points 4 months ago (1 children)

Grep. Couldn’t live without find exec grep.

[–] [email protected] 1 points 4 months ago (1 children)

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

[–] [email protected] -1 points 4 months ago (1 children)

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

[–] [email protected] 7 points 4 months ago

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