Basic FTP Commands

Posted October 3, 2003 by AlexTheBeast in UNIX

The following is a listing of standard FTP commands.

close disconnect from the current host
open hostname connect to a different host
ls list the contents of a directory
dir list the contents of a directory with expanded information
cd directory change remote working directory
lcd directory change local working directory
!ls or !dir list contents of local directory
get filename copy a single file from the remote host
mget copy multiple files from the remote host
put copy a single file to the remote host
mput filename copy multiple files to the remote host
binary set binary file type (set before transferring binary files)
ascii set ascii file type (set before transferring text files)
mkdir newdirectory create directory
del filename delete remote file
help command displays help information on the command
quit exit the ftp program

The Conversation

Follow the reactions below and share your own thoughts.