In this article, we have explained how to transfer files from the local machine to the remote server.
Follow the steps:
- To transfer files “get” command is used. Its syntax is :
get file.txt /RemoteDirectory - To download the files from the local machine to the remote server is as follows:
get file.txt /RemoteDirectory - Enter the following command to move the “example.txt” file from a local machine to a remote machine:
put /home/user-name/example.txt /root - The file can now be found in the root directory of the remote server.
- Using the “mput” command, you can also transfer multiple files. The method is nearly identical to “mget”:
mput /home/user-name/*.txt /root - The above command moves all the “.txt” extension files in the “/home/user-name” from the local machine to the remote server’s directory.
That’s it! Hope you liked our article. This way one can transfer files from the local machine to the remote server.