[LBo] how to list files with full path
Robert Parker
rlp1938 at gmail.com
Tue Dec 19 12:46:04 CET 2006
On 12/19/06, Michal <misko at gmx.co.uk> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> > You could use 'locate' instead of find. It'll show the whole system
> > (from the last updatedb run) but will do what you're asking.
> I tried thatm and it did not make what I expected, because after moving
> file it shows bad path, the old path of the file.
That is because locate works on a database. All it will show is the state of
affairs at the time of the last update.
The comand you need is 'updatedb' - run it as root/sudo.
'find' is better for on the fly information.
Bob
More information about the QnA
mailing list