How to Use FTP Unix Command



How to Use FTP Unix Command

How to Use FTP Unix Command

Follow this tutorial to learn how to use the UNIX FTP command to transfer, rename and delete files in your Linux directory contents.

Don’t forget to check out our site http://howtech.tv/ for more free how-to videos!
http://youtube.com/ithowtovids – our feed
http://www.facebook.com/howtechtv – join us on facebook
https://plus.google.com/103440382717658277879 – our group in Google+

In this tutorial we will show you how to Use the ftp unix command. Ftp; that stands for File Transfer Protocol, is a protocol that allows the transfer or receiving of files from a host to the other. This can be done through a network like the internet.
To understand more about the unix ftp commands follow the tutorial steps given below.

Step 1 — Type the command

First of all in the terminal, let’s type the command ftp space followed by the internet address you want to access.

Step 2 — Type the username and password

With that done, it will prompt you to type the user name which is provided by the ftp server administrator. Once you have typed in the username, you will be required to type the password as well.

Step 3– List the directory contents

With that done, a connection would be successfully established. Now let’s list the contents of the directory over here.

Step 4 — Retrieve file from server

If you want to receive the file from the server, type the command “mget” followed by the file name you want to retrieve”.

Step 5 — Confirm to retrieve file

With that done, it will ask for a confirmation whether you want to retrieve the selected file. Over here, type yes and hit enter to continue. This will get the file form the server and place it in the root directory.

Step 6 — Transfer file from root directory to ftp server

If you want to transfer the file from your root directory to your ftp server, you can use the command “put” followed by the name of the file you want to transfer.

Step 7– List contents of directory again to view transferred file

Now when we list the contents of the directory in our ftp server, you can see that the file has been successfully transferred.

Step 8– Rename a file on ftp server

If you want to rename a file which is on your ftp server, you can use the ftp unix command “rename” followed by the name of the file you want to rename. After that, you will be required to type in the new name you want to keep for the file.

Step 9 — List directory to view renamed file

Now when we list the contents of the directory in our ftp server, you can see over here that the file has been successfully renamed.

Step 10 — Delete file from ftp server

If you want to delete the file from the ftp server, type the command “delete” followed by the name of the file you want to delete.

Step 11– View directory to see if file has been deleted

If we list the contents of the directory right now, you will notice that the file has been successfully deleted.

Step 12 — Close ftp session

To logout and end the ftp session, simply type “bye” and hit enter.
With that done, the session will be closed. And that’s it, follow the steps given above to learn about the unix ftp commands that are used in such and ftp session.

Comments are closed.