Is there a way to display all the information that -l does in ls (permissions, dates, etc.) when using the locate or find commands?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
Not just for "ls -l" but for whatever action you'd want to perform to your locate or find results you can use xargs or in the case of find the -exec flag. Here are examples to achieve what you want to do: In the case of locate you can use xargs:
Xargs can be used for find too, but find has the -exec flag that allow to optimize further actions with find results; for example
|
|||||||||||||
|
|
You can use
|
||||
|
|
