[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can the locate database / locate tool report file size?
From: |
Andreas Metzler |
Subject: |
Re: Can the locate database / locate tool report file size? |
Date: |
Sat, 31 Jul 2021 18:13:17 +0200 |
On 2021-07-31 Colin Williams <colin.williams.seattle@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'