FTP access using Terminal

Modified on Thu, 31 Oct, 2024 at 1:31 PM

Linux



You can turn on the Terminal in 2 different ways.  The application can be found on the upper left panel in Applications > Accessories > Terminal or you can start it if you press Ctrl + Shift + T at the same time.


image

Windows


Click the Windows button located on lower left and type cmd in the search bar. The terminal window will open as shown in the picture bellow.



 Mac (OSX) 


Open any folder. You will see on the left side the Applications tab, click to open that directory then open Utilities. There you will locate the program Terminal.



FTP access on servers


No matter what operating system you are using, FTP access is the same and you are connecting to it as we will present bellow. We will be using fictional login data, so be sure to change it to your login data:



hostname: ftp ftp.macbook.de

username: Cory

password: yeeH8AhNg9



Type in terminal the following ftp your hostname (1)


If the connection was successful, ftp is going to ask for a valid user that has access to the server.


Then type your username and after that password, just know that characters that you type for password will not be shown on screen. (2)


After that, if you did entered the correct login info, you will see an output similar to the following picture:

The best way to check if your ftp account is connected and that your connection is working well is to use a simple command such as l, as it will list the names of the files in the current remote directory.


Note: You wont be able to connect via FTP or you will get errors, if you haven't connected to our VPN client.


Useful commands:


bye/quit - exit the FTP environment


cd – to change the directory on the remote machine


delete – to delete (remove) a file in the current remote directory


get – to copy one file from the remote machine to the local machine


help – to request a list of all available FTP commands


ls – to list the names of the files in the current remote directory


mkdir – to make a new directory within the current remote directory


mget – to copy multiple files from the remote machine to the local machine; you are prompted for a y/n answer before transferring each file


mput – to copy multiple files from the local machine to the remote machine; you are prompted for a y/n answer before transferring each file


put – to copy one file from the local machine to the remote machine


pwd – to find out the pathname of the current directory on the remote machine


rmdir – to remove (delete) a directory in the current remote directory

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article