Last active
April 8, 2019 15:44
-
-
Save gyfoster/bfa7bf8ce38999972ef46593d6665306 to your computer and use it in GitHub Desktop.
A list of my most commonly used find commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find file (case-insensitive) with name beginning with "postgres" in current directory: | |
$ find . -iname postgres* | |
Find directory (case-insensitive) in filesystem with name "s2i": | |
$ sudo find / -type d -iname "s2i" | |
Find text within a set of files in current directory: | |
$ find . -iname *.java | xargs grep -i someTextToSearchFor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment