I'm a *total* linux newbie - so apologies for this question.....
I want to copy a file from a remote host to my home directory.
I can use
scp root@hostname:/directory/filename .
to do this.
What if I'm not sure of the directory structure? i.e. I know the filename but don't know the exact location.
Is there a similar command to find the file before I copy it? i.e. connect to host and find in one command.
(Or would I have to connect first and then use the locate command? Would I do this using the ssh command?)