0
0
Linux CLIscripting~5 mins

scp and rsync for file transfer in Linux CLI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the scp command do?

scp stands for secure copy. It copies files or folders between computers over a network using SSH for security.

Click to reveal answer
beginner
How is rsync different from scp?

rsync copies files like scp but only transfers changed parts of files, making it faster for repeated transfers.

Click to reveal answer
intermediate
What option in rsync preserves file permissions and timestamps?

The -a option (archive mode) preserves permissions, timestamps, symbolic links, and more.

Click to reveal answer
beginner
Write a simple scp command to copy file.txt from your local machine to a remote server at user@host in the home directory.

scp file.txt user@host:~

This copies file.txt to the remote user's home folder.

Click to reveal answer
intermediate
Why might you choose rsync over scp for backups?

rsync only sends changed parts of files, saving time and bandwidth. It also can resume interrupted transfers.

Click to reveal answer
Which command uses SSH to securely copy files between computers?
Ascp
Bftp
Ccp
Dmv
What does the -a option do in rsync?
ADeletes files after transfer
BCompresses files before transfer
CArchive mode, preserves permissions and timestamps
DRuns transfer in background
Which tool is better for syncing large folders repeatedly with minimal data transfer?
Ascp
Brsync
Ccat
Dtar
How do you specify the destination directory in scp?
AUsing the <code>-d</code> option
BBefore the source file
Cscp does not support destination directories
DAfter a colon following the remote user and host
Which command can resume interrupted file transfers?
Arsync
Bscp
Ccp
Dmv
Explain how scp and rsync differ in transferring files over a network.
Think about speed and efficiency differences.
You got /4 concepts.
    Describe a situation where using rsync is better than scp.
    Consider repeated file syncing.
    You got /4 concepts.