Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Need to collect all git configs, I use

find / -type f -name '.gitconfig'

But also I need find out all locals 'config' under hidden .git dirs

share|improve this question
    
find does search in .foo –  Mat Dec 23 '12 at 13:16
    
/some_name/.git/config - i have to find this config file –  Yurij73 Dec 23 '12 at 14:18
    
Yes, I understand. And standard find will find it. –  Mat Dec 23 '12 at 14:19
    
i tryed find / -type f -name 'config' -type d -name '.git' dont works :( –  Yurij73 Dec 23 '12 at 14:21
    
What is your Linux distro and version of find? What you describe is unusual, people usually ask the opposite (e.g. here) –  Mat Dec 23 '12 at 14:24

1 Answer 1

This command:

ls -a

should do it.

share|improve this answer
3  
That just lists all files and directories within the current dirctory, including hidden ones. It does not help with the use of find (e.g. for a recursive search, for a specific filename) in any way. –  Bob Dec 23 '12 at 15:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.