Solved

Is there a command to find a file on a remote host?

Posted on 2004-08-05
2
308 Views
Last Modified: 2010-03-18
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?)


Many Thanks
0
Comment
Question by:harvey74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
pablouruguay earned 300 total points
ID: 11727891
you can  do ssh to the host and loggin

after that you can

find path -name filename

example

find / -name  dhcpd.conf
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 200 total points
ID: 11732993
If the remote server supports it you could use sftp, which allows you to browse for the file.
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question