From Novara Support Knowledgebase
Unix/Linux FTP command:
This command will attempt to connect to the ftp server at yourdomain.com. If it succeeds, it will ask you to log in using a username and password. Public ftp servers often allow you to log in using the username "anonymous" and your email address as password. Once you are logged in you can get a list of the available ftp commands using the help function:
This lists the commands that you can use to show the directory contents, transfer files, and delete files.
This command prints the names of the files and subdirectories in the current directory on the remote computer.
ftp> cd customers
This command changes the current directory to the subdirecotry "customers", if it exists.
ftp> cd ..
Changes the current directory to the parent direcotry.
ftp> lcd images
Changes the current directory on the local computer to "images", if it exists.
Changes to "ascii" mode for transferring text files.
Changes to "binary" mode for transferring all files that are not text files.
ftp> get image1.jpg
Downloads the file image1.jpg from the remote computer to the local computer. Warning: If there already is file with the same name it will be overwritten.
ftp> put image2.jpg
Uploads the file image2.jpg from the local computer to the remote computer. Warning: If there already is file with the same name it will be overwritten.
A '!' in front will execute the specified command on the local computer. So '!ls' lists the file names and directory names of the current directory on the local computer.
ftp> mget *.jpg
With mget you can download multiple images. This command downloads all files that end with ".jgp".
ftp> mput *.jpg
Uploads all files that end with ".jgp".
ftp> mdelete *.jpg
Deletes all files that end with ".jgp".
Turns iteractive mode on or off so that commands on multiple files are executed without user confirmation.
Exits the ftp program.
Windows FTP command:
Type the above command to start an FTP interactive session type "ftp" from a DOS Command window. The DOS prompt should be replaced with the FTP prompt. The FTP program is now running on the local system. A connection (or session) to a remote system has not been established.
The help command or ? (question mark) may be executed without being attached to a remote system and will do a print (usually to the screen) of the FTP commands. The following is a typical result of the help command running on a PC with Windows.
ftp> open domain.name Connected to domain.name 220 antigonous FTP server ready. User (domain.name:(none)): User-Name 331 Password required for user-name Password: password 230 User user-name logged in. ftp>
The above commands will establish a connection (or session) by doing a logon between the local FTP program and a remote system.
ftp> cd /web 250 CWD command successful. ftp>
The above command will change the directory on the remote system.
ftp> pwd 257 "/web" is the current directory. ftp>
The above command will find out the pathname of the current directory on the remote system and display the information.
ftp> ascii 200 Type set to A. ftp>
The above command will set the file transfer mode to ASCII (this is the default and transmits seven bits per byte).
ftp> put d:\simoweb1\filename.txt 200 PORT command successful. Opening ASCII mode data connection for filename.txt 226 Transfer complete ftp>
The following command will copy a file from the local system to the remote system.
ftp> binary 200 Type set to I. ftp>
The above command will set the file transfer mode to binary (the binary mode transfers all eight bits per byte and must be used to transfer non-ASCII files).
ftp> put d:\simoweb1\filename.zip 200 PORT command successful. Opening BINARY mode data connection for filename.zip 226 Transfer complete ftp>
The above command will copy a file from the local system to the remote system.
ftp> quit 221 Goodbye.
The above command will exit the FTP environment