Help with Telnet etc Please.

Slightly OT but if anybody can help it would be appreciated.

I can access my NAS box with telnet but the file I am looking for is not in the expected directory. Of course I could go through all the directories using ls -a but that would take days. Is there a command I can run to look for the file for me using the telnet console?

Regards,
Budgie2

Something like:

find /home/userdir -name 'somefile.pdf'

?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Probably a good idea to use -iname instead of -name in case the case is
not certain. ls has a recursive option too which may be combined with
grep but once it finds something you may still not be able to easily tell
where it is unless you have the directory from one-to-many lines beforehand:

ls -R | grep -i somefile

Probably better to pipe that to less and then search (type the slash
followed by your search string):

ls -R | less

Good luck.

On 01/20/2011 07:36 AM, vodoo wrote:
>
> Something like:
>
>
> Code:
> --------------------
> find /home/userdir -name ‘somefile.pdf’
> --------------------
>
>
> ?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJNOFTJAAoJEF+XTK08PnB5tLIP/0j1aKqYt1RkefpsPALyJ9AJ
BFkOWiQUb3yYgeYSKbKnRWoneosF1bbaiIUAXbyBXt1SYKCdpqKmK0GRJpqXWVtQ
qExPmLz7oPuQ3K67frbk8mQnrqYsXIfxEAButQxOODO46umUDPozOTO/a0yD3LxS
nYC5An4pvc2mh1s8BW6eqetaoGG9GiUCxU+ZGPeFTzmmxVImvwBRcmq8lsxsPW4w
8L3p2ZzkCCgZp7d2sQ4p+X5iq5NubH4UA0oEkAb8QAtAcTIb7i2p3lpS4LpXBxN0
vvfGT2ivEvJv+GSDjUdlkANK3GxhM/JgcNE201isrKOeZucOvZEhQDHithth6ms4
8eqn2ydwT9lujJ27nzap8aX2484tCY6IR9H3p8/khfM9aipwHZidW8YPACDME8wE
TaMfQVkak9b9pf2YWu+iqJdGvrqKTApFw4/AAXMBGwUF7bqSQjsSfFRno3qQDvhq
wkL6dyNkcSycG0TOwLiuXI30jLjwriqUZVX8ZtaUBtCvcRnHB7ryY6jO49dtGofj
H+kAXI2hvBQkEAMjbLbRcOEyzZGks72il0mcKdI8VcK+0F1SpCIXkzg5wUFZpdpT
4COUZZRDRU1mpCqj4c7OB5Fp6kpAZixxL2NpYXPnOvn4booU6Twjom5iTfsnXQxp
ZdzGzrNSFzQTn/fkWTtM
=wwg+
-----END PGP SIGNATURE-----

Great and thanks. Very rust on my command line stuff so suggestions will be tried and I shall red up when I have more time.
Thanks again.
Budgie2