This tutorial will explain how to transfer remote files from the server to the local system. You will learn how to download single and multiple files.
Let us find out how to transfer remote files from the server to the local system-
- The syntax of the “get” command is-
get /RemoteDirectory/filename.txt
- To download the file “/etc/xinetd.conf” from the remote server to your local machine enter the following command:
get /etc/xinetd.conf - After executing the above command, you will find the “xinetd.conf” file in the “/user/home” directory of your local PC.
- For downloading multiple files using SFTP, you can make use of the “mget” command.
- You can use the following command to download all files with the .conf extension in a directory called /etc to your existing working directory:
mget /etc/*.conf - After executing the above command you will find all “*.conf” files in the “/user/home” directory of your local PC.
In such a manner, the file transferring can be done.
Now, If you want to transfer files from the local machine to a remote server then take a look at our guide on How to Transfer Files from the Local Machine to the Remote Server
Hope you found our article to be helpful. Still, you can contact our support team if you face any difficulty.