Transferring files

The major purpose of the networking of computers is for resource sharing. Among resource sharing, the most prominent use is in file sharing. There are different methods by which we can transfer files between different nodes on a network. This recipe discusses how to transfer files using commonly used protocols FTP, SFTP, RSYNC, and SCP.

Getting ready

The commands for performing file transfer over the network are mostly available by default with Linux installations. Files via FTP can be transferred by using the lftp command. Files via a SSH connection can be transferred by using sftp, RSYNC using SSH with rsync command and transfer through SSH using scp.

How to do it...

File Transfer Protocol (FTP) is an old file transfer protocol ...

Get Linux Shell Scripting Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.