Re: Can the locate database / locate tool report file size?

Andreas Metzler <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
On 2021-07-31 Colin Williams <[email protected]> wrote:
> Can the locate database / locate tool be configured to report file size?

Hello,

The database only stores filenames. See locatedb(5). You could combine
locate with  xargs and e.g. ls to print more information on the
matching files.

ametzler@argenau:~$ locate --null /bin/updatedb | xargs -r0 ls -l
lrwxrwxrwx 1 root root   26 26. Dez 2015  /usr/bin/updatedb -> /etc/alternatives/updatedb
-rwxr-xr-x 1 root root 9088  9. Jän 2021  /usr/bin/updatedb.findutils

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.