Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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'm in a directory containing several sites directories. All these sites have a logs/ directory. I wish to find and list the files under each logs/ directory with the -ls parameter.

share|improve this question
Could you please describe a bit the directory tree structure and the expected output? Otherwise I'd suggest a basic ls www/*/logs/* – Sylvain Pineau Apr 28 '14 at 17:18
So basically I typed ls -la /var/www/vhosts/*/logs/* – nicoX Apr 28 '14 at 17:35
up vote 2 down vote accepted

I would list the logs with a simple call to ls in your case:

ls -la /var/www/vhosts/*/logs/*
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.