FTP Commands

FTP Commands

The following commands can be used in a file transfer protocol (FTP) command-line interface.
CommandFunctionExample(s)
ftpConnect to an FTP server
(type this command in the terminal window to begin an FTP session)
ftp
ftp ftp.servername.com
ftp 123.456.789.012
open
Opens a connection with an FTP server
(may be followed by a login prompt)
open ftp.servername.com
help OR ?Display a list of commandshelp
? [command]Display helpful information about a command? chmod
pwdDisplay the current directory on the FTP serverpwd
cdChange the directory on the FTP servercd www (open the "www" directory)
cd .. (move up one directory)
lcdChage the directory on your local computerlcd Documents
ls OR dirList the contents of a directoryls
renameRename a filerename test1.html test2.html
deleteDelete a filedelete test.html
mkdirCreate a new directorymkdir testing
rmdirRemove an existing directoryrmdir testing
asciiSet the file transfer mode to ASCII textascii
binarySet the file transfer mode to Binarybinary
getRetrieves a file from the FTP serverget test1.php Documents/test2.php
putSends a file to the FTP serverput Documents/test1.php test2.php
mgetRetrieves multiple files from the FTP server
(requires "Y" or "N" before downloading each file)
mget test1.php test2.php test3.php
mputSends multiple files to the FTP server
(requires "Y" or "N" before sending each file)
mput test1.php test2.php test3.php
closeClose the current FTP sessionclose
quit, exit, or byeExit the FTP programquit

No comments: