List of FTP commands
The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files from one host to another host over a TCP-based network, such as the Internet. FTP is built on a client-server architecture and uses separate control and data connections between the client and the server.
This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows NT help files. If you need to use the “raw” FTP commands instead of these interpreted commands, please consult this list instead.
for the Microsoft command-line FTP client
Reposted from: http://www.nsftools.com/tips/MSFTP.htm
- ! – Runs the specified command on the local computer
- ? – Displays descriptions for ftp commands
- append – Appends a local file to a file on the remote computer
- ascii – Sets the file transfer type to ASCII, the default
- bell – Toggles a bell to ring after each file transfer command is completed (default = OFF)
- binary – Sets the file transfer type to binary
- bye – Ends the FTP session and exits ftp
- cd – Changes the working directory on the remote computer
- close – Ends the FTP session and returns to the command interpreter
- debug – Toggles debugging (default = OFF)
- delete – Deletes a single file on a remote computer
- dir – Displays a list of a remote directory’s files and subdirectories
- disconnect – Disconnects from the remote computer, retaining the ftp prompt
- get – Copies a single remote file to the local computer
- glob – Toggles filename globbing (wildcard characters) (default = ON)
- hash – Toggles hash-sign (#) printing for each data block transferred (default = OFF)
- help – Displays descriptions for ftp commands
- lcd – Changes the working directory on the local computer
- literal – Sends arguments, verbatim, to the remote FTP server
- ls – Displays an abbreviated list of a remote directory’s files and subdirectories
- mdelete – Deletes one or more files on a remote computer
- mdir – Displays a list of a remote directory’s files and subdirectories
- mget – Copies one or more remote files to the local computer
- mkdir – Creates a remote directory
- mls – Displays an abbreviated list of a remote directory’s files and subdirectories
- mput – Copies one or more local files to the remote computer
- open – Connects to the specified FTP server
- prompt – Toggles prompting (default = ON)
- put – Copies a single local file to the remote computer
- pwd – Displays the current directory on the remote computer (literally, “print working directory”)
- quit – Ends the FTP session with the remote computer and exits ftp (same as “bye”)
- quote – Sends arguments, verbatim, to the remote FTP server (same as “literal”)
- recv – Copies a remote file to the local computer
- remotehelp – Displays help for remote commands
- rename – Renames remote files
- rmdir – Deletes a remote directory
- send – Copies a local file to the remote computer (same as “put”)
- status – Displays the current status of FTP connections
- trace – Toggles packet tracing (default = OFF)
- type – Sets or displays the file transfer type (default = ASCII)
- user – Specifes a user to the remote computer
- verbose – Toggles verbose mode (default = ON)
List of raw FTP commands
This page originally appeared at http://www.dreamhaven.org/ftp-raw.html, but the last time I looked it wasn’t there any more, so I posted a local copy for you here.
Reposted from: http://www.nsftools.com/tips/RawFTP.htm
- ABOR – abort a file transfer
- CWD – change working directory
- DELE – delete a remote file
- LIST – list remote files
- MDTM – return the modification time of a file
- MKD – make a remote directory
- NLST – name list of remote directory
- PASS – send password
- PASV – enter passive mode
- PORT – open a data port
- PWD – print working directory
- QUIT – terminate the connection
- RETR – retrieve a remote file
- RMD – remove a remote directory
- RNFR – rename from
- RNTO – rename to
- SITE – site-specific commands
- SIZE – return the size of a file
- STOR – store a file on the remote host
- TYPE – set transfer type
- USER – send username
- ACCT* – send account information
- APPE – append to a remote file
- CDUP – CWD to the parent of the current directory
- HELP – return help on using the server
- MODE – set transfer mode
- NOOP – do nothing
- REIN* – reinitialize the connection
- STAT – return server status
- STOU – store a file uniquely
- STRU – set file transfer structure
- SYST – return system type
1 thought on “List of FTP commands”
Rags March 27, 2015 at 2:16 am
FTP is very complex to set up. On the other hand, Binfer is a more secure and cheaper alternative to FTP. See Binfer as FTP replacement.
Reply