Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .