Skip to content
  • Sponsor ruanbekker/cheatsheets

  • Notifications You must be signed in to change notification settings
  • Fork 148

Files

Latest commit

4b3717c · Sep 18, 2023

History

History

find

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 18, 2023

README.md

find cheatsheet

Examples

To find a file with the name hello.txt somewhere in the ~/workspace directory:

find ~/workspace -type f -name 'hello.txt'

To find any directories with the name temp somewhere in the ~/workspace directory:

find ~/workspace -type d -name 'temp'

To find and delete any folders that starts with .terraform/providers:

find . -type d -name '.terraform' -exec bash -c 'if [ -d "$1/providers" ]; then rm -rf "$1/providers"; fi' bash {} \;