Frank Barcenas Asked: 2016-07-01 07:06:14 +0800 CST2016-07-01 07:06:14 +0800 CST 2016-07-01 07:06:14 +0800 CST How would I list owners and permissions for all directories named X recursively? 772 Basically I would like to do a 'ls -l' recursively showing only those directories named web. How would I accomplish that? command-line-interface ls recursive 2 Answers Voted sysfiend 2016-07-01T07:27:48+08:002016-07-01T07:27:48+08:00 ls -lR | grep -w web -R List subdirectories recursively -w Select only those lines containing matches that form whole words. Best Answer EEAA 2016-07-01T07:22:18+08:002016-07-01T07:22:18+08:00 How about something like: $ find /path/to/files -name "web* -type d | xargs ls -la
-R
List subdirectories recursively-w
Select only those lines containing matches that form whole words.How about something like: