100 likes | 170 Views
SoftwareTools. CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang. Overview. Coursetool HW1 FTP Programmer’s File Editor V1.01. FTP. What is FTP?
E N D
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang
Overview • Coursetool • HW1 • FTP • Programmer’s File Editor V1.01
FTP • What is FTP? The FTP (File Transfer Protocol) utility program is commonly used for copying files to and from other computers. These computers may be at the same site or at different sites thousands of miles apart. FTP is a general protocol that works on UNIX systems as well as a variety of other (non-UNIX) systems.
Local and Remote For the purposes of this lecture, the local machine refers to the machine you are initially logged into, the one on which you type the ftp command. The remotemachine is the other one, the one that is the argument of the ftp command.
Getting Started • To connect your local machine to the remote machine, type ftp machinename where machinename is the full machine name of the remote machine, e.g., ftp grove.ufl.edu I suggest you to open a telnet window at the same time you open a ftp window.
Getting Started (cont.) • If the remote machine has been reached successfully, FTP responds by asking for a loginname and password. When you enter your own loginname and password for the remote machine, it returns the prompt ftp> It permits you access to your own home directory on the remote machine.
Common FTP Commands 1 • ?to request help or information about the FTP commands • asciito set the mode of file transfer to ASCII (this is the default and transmits seven bits per character) • binaryto set the mode of file transfer to binary (the binary mode transmits all eight bits per byte and thus provides less chance of a transmission error and must be used to transmit files other than ASCII files)
Common FTP Commands 2 • byeto exit the FTP environment (same as quit) • cdto change directory on the remote machine • lcdto change directory on your local machine (same as UNIX cd) • lsto list the names of the files in the current remote directory • mkdirto make a new directory within the current remote directory • pwdto find out the pathname of the current directory on the remote machine
Common FTP Commands 3 • deleteto delete (remove) a file in the current remote directory (same as rm in UNIX) • getto copy one file from the remote machine to the local machine • putto copy one file from the local machine to the remote machine
Programmer’s File Editor V1.01 • This is free software obtained from Internet. • It can be run on Microsoft windows. • You can use it to edit your C programs for homeworks. • Please go to class website to download it. It is under “Software”.