Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I want to list all suhosin.ini files under /etc/php5/ directory. The thing is that the 3 of them are one level deeper in the directory tree. I want to combine these two to one command

# ls  /etc/php5/*/*/suhosin.ini
/etc/php5/apache2/conf.d/suhosin.ini  /etc/php5/cgi/conf.d/suhosin.ini  /etc/php5/cli/conf.d/suhosin.ini

# ls  /etc/php5/*/suhosin.ini

I tried to use ls /etc/php5/ -R and pipe it to grep but i couldnt do what i want which is get a list like that

share|improve this question

migrated from Dec 25 '12 at 22:05

This question came from our site for professional and enthusiast programmers.

up vote 4 down vote accepted

Use find:

$ find /etc/php5 -name suhosin.ini
share|improve this answer

Your Answer


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.