An FTP Server will accept the list of FTP commands.

FTP Commands

FTP Commands Interactive Session:

To begin an FTP Interactive session to work out all the commands. Follow this simple steps.

  1. If you are using Windows, then press Start and type in cmd or else use the shortcut Ctrl+r and type cmd to open the DOS Command Prompt.

    FTP Commands

    FTP Commands Step 1

  2. To change the Dos Prompt to an FTP prompt. Type in “FTP or ftp” (Not case Sensitive).It will initiate the FTP program on your local machine yet a session has to be started with a remote system to establish a connection. (C:\Users\admin>FTP).

    FTP Commands

    FTP Commands Step 2

  3. Before proceeding further, the commands used can access by typing in ? or help. It will print the FTP commands on the screen. (ftp>? or ftp> help).

    FTP Commands

    FTP Commands Step 3

The following is a typical result of the help command running on a PC with Windows. Commands can be abbreviated. Commands are:

FTP Commands Description of Command
! Escape to the Shell
$ Execute macro
? print local support information
account Send account command to remote server
append Append to a file
ascii set ascii transfer type
beep beep when command completed
binary Set Binary transfer type
bye Terminate ftp session and exit
case toggle mget upper/lower case id mapping
cd Change remote working directory
cdup change remote working directory to parent directory
chmod Change file permissions of remote file
close Terminate FTP session
cr toggle carriage return stripping on ascii gets
debug toggle/set debugging mode
delete delete remote file
dir list contents of remote directory
disconnect terminate ftp session
exit terminate ftp sessions and exit
form set file transfer format
get receive file
glob toggle meta character expansion of local file names
hash toggle printing `#’ for each buffer transferred
help display local help information
idle get (set) idle timer on remote side
image set binary transfer type
ipany allow use of any address family
ipv4 restrict address usage to ipv4
ipv6 restrict address usage to ipv6
lcd Change local working directory
ls list contents of remote directory
macdef define a macro
mdelete delete multiple files
mdir list contents of multiple remote directories
mget get multiple files
mkdir make directory on remote machine
mls list contents of multiple remote directories
mode set file transfer mode
modtime show last modification time of remote file
mput send multiple files
newer get file if remote file is newer than local file
nlist nlist contents of remote directory
nmap set templates for default file name mapping
ntrans set translation table for default file name mapping
open connect to remote ftp
passive enter passive transfer mode
prompt force interactive prompting on multiple commands
proxy issue command on an alternate connection
put send one file
pwd print working directory on remote machine
qc print ? in place of control characters on stdout
quit terminate ftp session and exit
quote send arbitrary ftp command
recv receive file
reget get file restarting at end of local file
rename rename file
reset clear queued command replies
restart restart file transfer at bytecount
rhelp get help from remote server
rmdir remove directory on remote machine
rstatus show status of remote machine
runique toggle store unique for local files
send send one file
sendport toggle use of PORT cmd for each data connection
site send site specific command to remote server
size show size of remote file
status show current status
struct set file transfer structure
sunique toggle store unique on remote machine
system show remote system type
tenex set tenex file transfer type
tick toggle printing byte counter during transfers
trace toggle packet tracing
type set file transfer type
umask get (set) umask on remote site
user send new user information
verbose toggle verbose mode

Before using these commands on your FTP prompt, get a clarity on the basic working of File Transfer Protocol.