On 2021-07-31 Colin Williams <colin.williams.seat...@gmail.com> 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'

Reply via email to