Linux command to provide a directory listing of all files with a matching string with size and owner info
Submitted by Koder on Sun, 07/05/2009 - 02:59
If you are ever looking for a command that will do the following:
- Provide you with recursive listing of all files with a particular file extension or string in it (such as *.txt)
- Provide you with detailed file information such as filesize, creation date and owner
The command is as follows:
find / -name '*.txt' -exec ls -l '{}' ';'
You need to type the above exactly as it appears. I have tried the command personally on Ubuntu 8.10 and SUSE 11.
The command was provided by courtesy of a fellow ircer called unixy on #India on Undernet.
- Add new comment
- 987 reads
-


Recent comments
1 day 1 hour ago
3 days 24 min ago
3 days 4 hours ago
4 days 22 hours ago
4 days 23 hours ago
1 week 6 days ago
4 weeks 1 day ago
4 weeks 2 days ago
4 weeks 3 days ago
5 weeks 6 days ago