Essential FTP Commands List

Published on 04 Oct 2018 - Updated on 17 Nov 2020

FTP not only transfers files from one system to another. With FTP, you also get a form of data management. Get started with our FTP commands list.

Essential FTP commands infographic.

Download & share our pocket reference FTP Commands List.
Available Here >> essential_ftp_commands_list

FTP Commands for More than Just File Transfer

Use FTP commands to manage data by locating files, deleting unneeded documents, and transferring data to clients and business associates at remote locations. Manage files individually, or use file transfer protocol to move multiple files between your computer and an FTP server.

To get you started with file transfer protocol, here is a list of the most common FTP commands and their basic descriptions. This chart makes a great cheat sheet for new programmers or a handy reference for pros who are juggling a lot of technical information.

FTP Command

Description

?

Access the help screen. Request information about FTP commands.

ascii

Set file transfer mode to ASCII. Usually the default setting.

binary

Set file transfer mode to binary. Binary is needed to transfer non-ASCII files.

bye

Exit FTP environment.

cd

Change directory.

close

Terminate an FTP session.

delete

Delete a file.

dir

Lists the contents of the remote directory. Includes files and subdirectories.

get

Get file from remote server/computer. Copies file to local computer.

help

Request a list of all available FTP commands. Help screen displays additional information about a command if the command is entered after help.

lcd

Change local directory.

ls

List file names in the current remote directory.

mget

Copy multiple files from the remote system to the local computer.

mkdir

Make a new directory within the current remote directory.

mput

Send multiple files from local computer to remote system.

open

Open connection with another system.

put

Send file to remote server/computer.

pwd

Show pathname of current directory.

quit

Exit FTP environment.

rmdir

Remove directory on the remote server/computer.

Additional Commands

These FTP commands, while common for the basic FTP functions, are based on running a PC with Windows. Once you have all the basic FTP commands down, additional commands can be found in the help screen and used to request more complex functions. These commands may differ slightly depending on your system.

Using Commands with SFTP

You can also use commands to manage and transfer data via SFTP. Many people prefer to use SFTP because it is a natively secure protocol. While SFTP is often used as a secure replacement for FTP, you may think the same commands would work for both.

However, SFTP is a completely separate protocol from FTP. And because it is a separate protocol, there are some differences in the commands you use to perform actions.

Essential SFTP Commands

Based on the list above, there are only a few differences to note if you are using SFTP. The following FTP commands do NOT work for SFTP connections:

  • ascii
  • binary
  • close
  • open

If you want to delete a file with SFTP you use the command rm instead of delete.

You’ve got the commands, now it’s time to start using FTP. Sign up for Exavault today!

Recent Related Blogs

Share via:
  • Facebook
  • Twitter
  • LinkedIn

© 2022 ExaVault LLC. All Rights Reserved. ExaVault is a registered trademark of ExaVault LLC.