LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-26-2003, 02:21 PM   #1
dogma
LQ Newbie
 
Registered: May 2003
Location: Tuscaloosa, AL
Distribution: RedHat Rel 7.2 - 2.4.7-10
Posts: 27

Rep: Reputation: 15
how do I transfer files


Hi,
I am a Linux

How do I transfer files between 2 computers in a network?
Can I do it in ssh mode and in ftp too?
What are the commands?

Please help
 
Old 05-26-2003, 02:30 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
there is a subsystem in ssh called sftp. you can use that to transfer files in a secure method
 
Old 05-26-2003, 03:37 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
You could also use scp.
 
Old 05-26-2003, 05:33 PM   #4
hamster
Member
 
Registered: Apr 2003
Location: Waterford, Ireland
Distribution: Mandrivia 2006.1, Ubuntu 7.10
Posts: 188

Rep: Reputation: 30
and if it's between a linux box and a window box you can use samba. Samba allows linux to share specified directories and devices (eg printers).
 
Old 05-26-2003, 09:09 PM   #5
tSp
LQ Newbie
 
Registered: May 2003
Location: Maysville, KY
Distribution: Redhat 5 - 8.0, Slackware 4, Mandrake 7 - 8.1
Posts: 7

Rep: Reputation: 0
Assuming its between 2 linux computers and you can ssh between them, then you can use scp to copy files from one to the other. The actual commands are (depending on if its one file or a directory --- check the man page for scp/ssh):

Single file transferred from computer you are currently on to remote computer:
scp file_name ip_addy_remote_computer:/home/your_home_dir

Recursive directory transfer from computer you are on to remote computer:
scp -r folder_name ip_addy_remote_computer:/your_home_dir

Single file transfer from remote computer to computer you are on:
scp ip_addy_remote_computer:/home/home_folder_name/filename /home/local_computer_home_folder_name

similar for recursive copy too, just add the -r and the folder name on the remote computer.
 
Old 05-27-2003, 07:11 PM   #6
awdoyle
Member
 
Registered: Aug 2002
Location: Portland, OR
Distribution: Xubuntu
Posts: 135

Rep: Reputation: 15
Or check out this article:
Moving files in Linux

Andrew
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How transfer files? zpxykm Linux - Newbie 4 11-24-2005 04:03 AM
Can't Transfer Files derek-888 Linux - General 9 11-29-2003 01:41 PM
Transfer files ust Linux - General 1 04-10-2003 08:19 AM
Best Way to Transfer Files? Cynthia Blue Linux - Newbie 20 12-14-2002 03:43 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 11:55 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration