What if you could move hundreds of files in seconds without lifting a finger?
Why scp and rsync for file transfer in Linux CLI? - Purpose & Use Cases
Imagine you have to copy dozens of photos and documents from your laptop to a friend's computer across the room. You try to do it by plugging in a USB stick, copying files one by one, and then plugging it into the other computer to paste them. It takes forever and you keep forgetting some files.
Manually moving files like this is slow and tiring. You might miss files, copy duplicates, or accidentally overwrite important data. If the files are on different networks or far away, physically moving storage devices is impossible. It's easy to make mistakes and waste time.
Using scp and rsync lets you transfer files quickly and safely over a network. scp copies files securely from one computer to another with one command. rsync goes further by syncing only changed parts of files, saving time and bandwidth. Both tools automate the process, so you don't have to do it manually.
copy files one by one to USB, then paste on other computer
scp file.txt user@remote:/path/ or rsync -avz folder/ user@remote:/path/You can easily and securely move or sync large amounts of files between computers anywhere, saving hours of manual work.
A photographer uses rsync to back up thousands of photos from their laptop to a remote server every night, only transferring new or changed images to save time.
Manual file copying is slow, error-prone, and impractical over distances.
scp and rsync automate secure file transfers over networks.
rsync efficiently syncs only changed files, saving time and bandwidth.