Answers for "linux find file type under a specific folder"

0

linux find file type under a specific folder

find . -type f -name "config-*.json" | grep "prod"

or

# I'd personally use find, but you can glob for these things too:

shopt -s globstar
ls /etc/{,**/}*.conf

# And you can use locate and it's fast but not reliable.

locate '/etc/**.conf'
Posted by: Guest on October-17-2021

Code answers related to "linux find file type under a specific folder"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language