LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to do file transfer in linux (https://www.linuxquestions.org/questions/linux-general-1/how-to-do-file-transfer-in-linux-320700/)

pspandu 05-06-2005 08:03 AM

How to do file transfer in linux
 
How to do file transfer in linux?
what are the commands to start ftp?

Thanks
ps

acid_kewpie 05-06-2005 08:13 AM

"start" ftp? client or server? what do you actually want to achieve?

unsuprisingly, the command to start the ftp client is "ftp"

geeman2.0 05-06-2005 08:15 AM

Your question is vague...

but gftp is a nice gui ftp program.

oneandoneis2 05-06-2005 09:06 AM

I always liked ncftp. . .

Lleb_KCir 05-07-2005 08:51 AM

you do not even need FTP you can just use scp

http://www.siliconvalleyccie.com/lin...ssh-server.htm

check out the linky. i use that every time i need to scp from the house to the office.

in short it is very simple, fast, and secure, thus the s in front of the cp command.

secure copy.

pspandu 05-08-2005 11:44 PM

Thanks for the reply. Actually my doubt is ,i want to get file or more than one file from remote machine to local machine.what commands should i use?

as i know 1.telnet remote ip address--to connect to remote machine
frp>get or mget or put --commands to use under ftp

this is one method.

2.what is ssh?
how to get multiple files using ssh,scp commands?
what is the syntax to use these commands?

thanks
ps

Lleb_KCir 05-09-2005 01:10 AM

read that link it gives the exact syntax for moving files either to your local system or from the local system.

as for more then one file i suppose the standard wild card of * should work:

direct quote off of that page:

Quote:

Copying Files To The Local Linux Box

If you understand how scp represents remote filenames, you can start copying files fairly easily. For example, to copy file /tmp/software.rpm on the remote machine to the local directory /usr/rpm use the commands



[root@bigboy tmp]# scp root@smallfry:/tmp/software.rpm /usr/rpm

root@smallfry's password:

software.rpm 100% 1011 27.6KB/s 00:00

[root@bigboy tmp]#



To copy the file /tmp/software.rpm on the remote machine to the local directory /usr/rpm using TCP port 435, use the commands



[root@bigboy tmp]# scp -P 435 root@smallfry:/tmp/software.rpm /usr/rpm

root@smallfry's password:

software.rpm 100% 1011 27.6KB/s 00:00

[root@bigboy tmp]#



Copying Files To The Remote Linux Box

Copying files to the local Linux server now becomes intuitive. For examples, to copy file /etc/hosts on the local machine to directory /tmp on the remote server



[root@bigboy tmp]# scp /etc/hosts root@192.168.1.103:/tmp

root@192.168.1.103's password:

hosts 100% 1011 27.6KB/s 00:00

[root@bigboy tmp]#
so should not be all that hard to grab more then 1 file at a time.

Code:

scp root@smallfry:/tmp/*.rpm /usr/rpm
that should grab every file that has the extention .rpm and copy it to your local box from the /tmp/ directory.

ngbalaji 09-12-2006 02:09 AM

Facing Problem with SCP
 
While Copying using scp source files of the linked files also getting copying to that destination.

How to resolve the problem


All times are GMT -5. The time now is 04:52 PM.