There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

find a file containing some text

TL;DW


<span style="color:#323232;"># find with grep
</span><span style="color:#323232;"># + concatinates results and runs the command once, faster
</span><span style="color:#323232;">find . -name "*.txt" -exec grep -l "somename" '{}' '+'
</span><span style="color:#323232;">
</span><span style="color:#323232;"># run a command for each result individually
</span><span style="color:#323232;">find . -name "*.txt" -exec basename '{}' ';' |  column
</span><span style="color:#323232;">
</span><span style="color:#323232;"># case insensitive
</span><span style="color:#323232;">find -iname "SoMeNaMe.TxT
</span><span style="color:#323232;">
</span><span style="color:#323232;"># file or dir
</span><span style="color:#323232;">find -type f
</span><span style="color:#323232;">find -type d
</span><span style="color:#323232;">
</span><span style="color:#323232;"># define file owner
</span><span style="color:#323232;">find -user Bob
</span><span style="color:#323232;">
</span><span style="color:#323232;"># define file group
</span><span style="color:#323232;">find -group wheel
</span><span style="color:#323232;">
</span><span style="color:#323232;"># by permission
</span><span style="color:#323232;">find -perm 777
</span><span style="color:#323232;">
</span><span style="color:#323232;"># find by size
</span><span style="color:#323232;">find -size +1G
</span>
Wiz ,

She’s available on the Fediverse at tinkerbetter.tube/c/veronicaexplains/videos

Definitely worth following from your favorite Fediverse app.

299792458ms ,

For most cases I use fzf and rg. Its super fast.

Wiz ,

Veronica’s videos are awesome.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines