Linux has a collection of tools that can help in transferring data between networked computers. We will see how a few of them work in this section:
- Suppose we have a myfile.txt file on the local system that we want to copy to the remote system. The command to do so as follows:
scp myfile.txt tajinder@sshserver.com:~Desktop/
Here, the remote location where the file will be copied is the Desktop directory of the user account being used to connect.
- When we check on the remote SSH system, we can see that the myfile.txt file has been copied successfully:
- Now let's suppose we have a directory, mydata in the local system, ...