Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorials:node5.html [2011/04/30 20:00] – [4.7 Surf the Web] georgtutorials:node5.html [2011/04/30 20:04] – [4.8.2 scp] georg
Line 160: Line 160:
 To transfer files between your home computer & a remote unix, use the program called ftp. Your home computer almost certainly has a copy, even if you run Microthought Winders at home. To transfer files between your home computer & a remote unix, use the program called ftp. Your home computer almost certainly has a copy, even if you run Microthought Winders at home.
  
-To run ftp, first go to a command line. Then type <nowiki>"</nowiki>ftp ftp.freeshell.org<nowiki>"</nowiki> to connect to the FTP server at SDF.+To run ftp, first go to a command line. Then type ''ftp ftp.freeshell.org'' to connect to the FTP server at SDF.
  
 The ftp client has a command line interface. Here are some of the commands it understands: The ftp client has a command line interface. Here are some of the commands it understands:
  
-cd directory +''cd directory'' 
-    Change directory on the remote FTP server.  + 
-dir +Change directory on the remote FTP server.  
-    Print a lsit of the files in the current directory on the remote FTP server.  + 
-ascii +''dir'' 
-    Tell FTP to assume that files you transfer are text files.  + 
-binary +Print a lsit of the files in the current directory on the remote FTP server.  
-    Tell FTP to assume that files you trnasfer are binary files.  + 
-hash +''ascii'' 
-    Tell FTP to print an octothorpe character (#) for each block it sends or receives. It helps you see the progress of the file transfer.  + 
-put filename +Tell FTP to assume that files you transfer are text files.  
-    Upload a file.  + 
-get filename +''binary'' 
-    Download a file. + 
 +Tell FTP to assume that files you trnasfer are binary files.  
 + 
 +''hash'' 
 + 
 +Tell FTP to print an octothorpe character (#) for each block it sends or receives. It helps you see the progress of the file transfer.  
 + 
 +''put filename'' 
 + 
 +Upload a file.  
 + 
 +''get filename'' 
 + 
 +Download a file. 
  
 In general, use the cd command to enter the correct directory on the remote FTP server. Then set the correct mode (ascii or binary). Then use get to download a file or put to upload one. In general, use the cd command to enter the correct directory on the remote FTP server. Then set the correct mode (ascii or binary). Then use get to download a file or put to upload one.
  
-The ftp client program supports many more commands. Use <nowiki>"</nowiki>man ftp<nowiki>"</nowiki> for more information about FTP.+The ftp client program supports many more commands. Use "man ftp" for more information about FTP.
  
 In case you are interested: FTP refers to the File Transfer Protocol; it was one of the three requirements that created the Arpa Net which became the Internet. Ftp is also the name of the File Transfer Program which implements FTP. In case you are interested: FTP refers to the File Transfer Protocol; it was one of the three requirements that created the Arpa Net which became the Internet. Ftp is also the name of the File Transfer Program which implements FTP.
Line 192: Line 205:
 Use scp like you would use cp, but it can copy from one computer to another. Use scp like you would use cp, but it can copy from one computer to another.
  
-For example, if I want to copy myfile.cpio.bz2 on my computer into the tmp directory in my account on SDF, I would run this: <nowiki>"</nowiki>scp myfile.cpio.bz2 gms@freeshell.org:tmp/<nowiki>"</nowiki>. The scp program will probably prompt me for my password, then it will copy the file.+For example, if I want to copy myfile.cpio.bz2 on my computer into the tmp directory in my account on SDF, I would run this: ''scp myfile.cpio.bz2 gms@freeshell.org:tmp/''. The scp program will probably prompt me for my password, then it will copy the file.
  
-Run <nowiki>"</nowiki>man scp<nowiki>"</nowiki> to get more information about using scp.+Run ''man scp'' to get more information about using scp.
  
 In my experience, scp takes longer than ftp to transfer files, & it gives up easily. If either computer or the network is slow, scp gives up quickly. So I prefer ftp. In my experience, scp takes longer than ftp to transfer files, & it gives up easily. If either computer or the network is slow, scp gives up quickly. So I prefer ftp.