Help with FTP??
I want to know how ftp works.
I have to fetch few files through ftp from the remote machine. I am able to connect to remote system through ftp.But donno How gonna I enter into his directory and fetch the file. Is there any particular location i should place the files.Whenever I ftp to the remote machine on successful login its throwing me into pub directory. On remote system where is this pub directory located?? Pls Help? |
the pub directory is in
/var/ftp/pub to get files download gFTP and use that. it is a GUI app that makes FTP very easy. |
It's probably a good idea (just because it's a little easier) to be in the directory on your machine that you want to copy files from a remote machine into (although you can change local directory in ftp, it's just easier to be in the directory before you start).
To connect to a remote machine, you just do Code:
ftp -i remote You use the -i so you can get (or put) multiple files easily. Now, the above only connects you to the machine and you need to cd (change directory) to the directory where the files are on the remote and you have to have permission to do so (granted by the administrator of the remote); if the files you want are in the /tmp directory, you should be able to cd /tmp. You most likely will not be able to cd /home/user, though, so have the remote copy the files to someplace you can get to (frequently that would be /pub/some_directory -- you need to know where that is). So, assuming you can get into the directory, you can see the content of the directory with Code:
ls Code:
get file01 file02 ... Code:
mget *name* So, to cut to the chase, Code:
ftp -i remote |
Thanks Tronyne...Great Stuffs.
|
All times are GMT -5. The time now is 11:38 PM. |