Cookie
Eltima IBC uses cookies to personalize your experience on our website. By continuing to use this site, you agree to our cookie policy. Click here to learn more.

Commander One – reliable tool to use FTP via Mac Terminal



FTP is a standard network protocol used to transfer files to and from a remote network. In most cases, you will use a desktop FTP client, like Commander One to connect to a remote server and upload or download files. However, FTP via Mac Terminal is useful when you are working on a server without a GUI and want to transfer files via FTP to or from a remote server.

File manager for Mac - Commander One

Table of contents

How to find and open Terminal on Mac

There are several ways to get to Terminal on Mac. Below you will find the detailed guide.

With the help of Spotlight

The easiest way to open a program is to use Spotlight search. To do this, follow these steps:

  1. Find the Spotlight search icon in the menu bar. If it is not there, start the search using the Command + Space hotkeys.
  2. Type in the word "Terminal" in the search bar.
  3. The required application will be highlighted in the top line of the list with search results. Double click it to launch Terminal.

Through the "Applications"

If Finder is running on the device, the Terminal can be launched through the Applications folder:

  1. In Finder, find the "Applications" folder on the left side of the screen and open it.
  2. Click on the arrow next to the word "Utilities" to see the files in the folder.
  3. Click twice on the desired program.

Via Launchpad

There are several ways to launch the Terminal tool through the launchpad. In it you need to find the "Others" tab, and the Terminal is located in it. To run it:

  1. Launch Launchpad in the Dock or Fn + F4.
  2. Go to "Others".
  3. Find the required application in it and launch it.

If the Others folder is deleted after you change the launchpad organization, use the following method:

  1. Launch Launchpad.
  2. In the search bar at the top of the screen, type in "Terminal".
  3. The application name and icon will be highlighted. Click on it two times to run.

With the help of Siri

This method is considered the fastest and easiest. You just need to click on the Siri icon on the menu bar and say "Launch Terminal".

Fast access

If you regularly use the Terminal, we suggest adding the tool icon directly to the Dock. After launching the tool in any way, it will be displayed in the list of recently launched applications. You need to do the following:

  1. Hold down "Control" on the keyboard. At the same time, click on the Terminal icon in the dock or tap on it with the right mouse button.
  2. In the window that appears, select the "Parameters" item.
  3. Click on "Leave in Dock".

How to access FTP from Mac Terminal (step-by-step)

Connecting to FTP server on Mac through Terminal is easy and doesn’t require any complex actions.

1

Open the Terminal (using one of the ways above) and simply execute the following command in Terminal: ftp ip-address

Terminal window
2
You need to change ip-address to the IP address of the FTP server you want to establish connection to.
3
After the connection is established, you will need to insert your username. When inserted, press Enter.
4
After that, enter your password and press Enter.
That's it, now you know the answer to the question “How to access FTP on Mac from Terminal?”

Basic commands to FTP from Command Line on Mac

Most of the FTP commands are the same or identical to the UNIX FTP commands you enter on the Linux command line. Here are some basic FTP commands that will facilitate your workflow.

  • account - sends your password to the server for authorization.
  • append - adds a local file to the end of a remote file on the server.
  • ascii - transfers files in ASCII encoding.
  • binary - transfers files in binary format.
  • bye - ends the session.
  • cd - changes directory on the remote machine.
  • cdup - goes to a folder one level higher.
  • delete - deletes a file in the current remote directory.
  • dir - views the list of files in the folder.
  • get - copies one file from remote to local computer.
  • hash - displays file transfer status.
  • help or ? - lists all available FTP commands.
  • lcd - changes directory on local machine.
  • ls - lists the names of files and directories in the current remote directory.
  • mdelete - deletes multiple files.
  • mget command - copies multiple files from remote to local computer.
  • mkdir - creates a new directory in the current remote directory.
  • mput command - copies multiple files from local to remote computer.
  • open - connects to a remote FTP server.
  • put - copies one file from local to remote computer.
  • pwd - prints the current working directory on the remote computer.
  • rmdir - removes a directory in the current remote directory.
  • recv - is the same as get.
  • rename - renames a file on the server.
  • rmdir - deletes a folder.
  • size - finds out the file size.
  • user - logs in to the server.

How to FTP from Command Line. Common actions

This memo lists the most frequently used Mac Terminal FTP commands that will allow you to communicate freely with any server with any set of options.

Command Line

Adding a new folder

You can add a new folder by using the mkdir command on Mac. The procedure is easy and doesn’t require a lot of time.
mkdir directory_name

Creating a new file

If adding a folder is not a complicated task, creating a new file requires more actions to do. To create a file in Terminal on Mac you need first of all to have a copy of the file on your laptop before uploading it to the server.
!touch file_name
put file_name file_name

Changing files names on the server

You can also manage files on a remote server and rename in Terminal on Mac the files to have the correct file names.
rename old_name new_name

Moving files on a remote server

With a simple FTP move command you can flawlessly move any file on a remote server as if you were using FTP client for Mac.
rnfr_from_path_file_name rnto_to_path_file_name

Editing files

To edit file in Terminal Mac users need to useprograms built-in to the Terminal, such as nano, emacs etc. We will give you an example of using Nano as it is easier to understand and use.
get file_name file_name !nano file_name put file_name file_name

Copying files

With the help of the following FTP copy file command you can easily create a duplicate of a file that is useful, especially when you are editing files.
get file_name file_name
!mv file_name new_file_name
put new_file_name new_file_name

Uploading and downloading files

To send files to the server, you need to use FTP put command and know the full paths to the files on both local and remote machines.
put path_to_local_file remote_file

In order to download file from Terminal, instead of the put command, you need to enter get and the filename:
get path_to_remote_file local_file

Removing files

How to use FTP command line to delete a folder? Well, it is rather simple, all you need is to execute the following command:
delete file_name

Checking and changing permissions

Having permissions is an important thing as wrong permissions can harm your web app. That is why in order to check the permission the following command is used:
ls -l file_name

To modify the permissions to following command should be executed in the Terminal
chmod permissions_value file_name

Commander One – third-party Terminal for Mac

FTP file transfer can be performed using various graphical clients. They are more convenient to use and you do not need to panic each time you need to FTP from command line. Let’s take a look at Commander One – a handy dual-pane file manager with an impressive set of features for better and convenient management of your files.

Command Line

While using Commander One you won’t need to have many apps installed, as everything you need can be found in this app. Here you can find an impressive archive utility, tool for working with MTP, Android, iOS devices, handy feature to view hidden files, it's one spot to work with cloud computing services and way more. Besides that, Commander One is a full-fledged FTP client for Mac that’s why you don’t need to use Terminal to be able to transfer files back and forth.

The app offers full protocol support and encryption features for adding an extra layer of protection to your online files. However, if you are an avid fan of the Terminal you can simply FTP from Mac via Terminal built-into Commander One without leaving the app. Check it out and see what else it can offer you and how it can facilitate your work.

Conclusion

In this article, we have covered FTP file transfer, as well as how to use FTP via Command Line for transferring, downloading, managing files etc. without Installing any third-party software. Nevertheless, FTP clients are more comfortable to use and usually offer additional features for file management, that is why if you are not into FTP Terminal thing, they can come to your rescue. We hope the information will be useful for you and you will find something interesting and useful.

Frequently Asked Questions

FTP is one of the most popular ways to transfer files to a server among webmasters and users. File Transfer Protocol is a fairly old technology that has been used to transfer files between computers since the dawn of the Internet. But it still retains its popularity due to its simplicity and reliability.
By executing the following command ftp ip-address you will establish the connection after that you can execute different commands from the list above to fork with files.
There are several ways to enable FTP on Mac, namely through Finder, through Command Line, browser or by using third-party software.
From the Finder Menu Bar, select Go> Connect to server.
To open an FTP connection to a remote system, execute the FTP command followed by the IP address or domain name of the remote server. If the connection is established, a confirmation message will appear and you will be prompted to enter your FTP username. After entering your username, you will be prompted for a password.

There are several FTP commands to transfer files, namely:

  • ascii - transfers files in ASCII encoding.
  • binary - transfers files in binary format.
  • get - copies one file from remote to local computer.
  • mget command - copies multiple files from remote to local computer.
  • mput command - copies multiple files from local to remote computer.
  • put - copies one file from local to remote computer.

Commander One

This dual panel file manager for Mac is fully compatible with MacOS 10.12 and later. Requires 58.68MB free space, latest version 3.3(3508). Released 8 Sep, 2021.

4.5 rank based on 90+ users, Reviews (15)
Editor's Choice
f

Get the best file manager for Mac – Commander One