This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorials:node5.html [2011/04/30 20:00] – [4.7 Surf the Web] georg | tutorials:node5.html [2011/04/30 20:02] – [4.8.1 FTP] 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 < | + | To run ftp, first go to a command line. Then type '' |
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 | + | '' |
- | Change directory on the remote FTP server. | + | Change directory on the remote FTP server. |
- | dir | + | |
- | Print a lsit of the files in the current directory on the remote FTP server. | + | '' |
- | ascii | + | Print a lsit of the files in the current directory on the remote FTP server. |
- | Tell FTP to assume that files you transfer are text files. | + | |
- | binary | + | '' |
- | Tell FTP to assume that files you trnasfer are binary files. | + | Tell FTP to assume that files you transfer are text 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 | + | Tell FTP to assume that files you trnasfer are binary files. |
- | Upload a file. | + | |
- | get filename | + | '' |
- | Download a file. | + | Tell FTP to print an octothorpe character (#) for each block it sends or receives. It helps you see the progress of the file transfer. |
+ | |||
+ | '' | ||
+ | Upload a file. | ||
+ | |||
+ | '' | ||
+ | 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 < | + | 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. |