Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
2  
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 at 17:18
1  
So basically I typed ls -la /var/www/vhosts/*/logs/* –  nicoX Apr 28 at 17:35

1 Answer 1

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

 
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.