Challenge - 5 Problems
File Transfer Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this rsync command?
You run this command to copy files from your local folder to a remote server:
What will rsync display as output?
rsync -avz /home/user/docs/ user@remote:/backup/docs/What will rsync display as output?
Linux CLI
rsync -avz /home/user/docs/ user@remote:/backup/docs/
Attempts:
2 left
💡 Hint
The -v option in rsync means verbose output.
✗ Incorrect
The -a option means archive mode (preserves permissions, timestamps), -v means verbose (shows files copied), and -z compresses data. So rsync lists files copied with details and a summary.
💻 Command Output
intermediate2:00remaining
What error does this scp command produce?
You run this command to copy a file from a remote server to your local machine:
But the remote path is incorrect. What error message will scp show?
scp user@remote:/path/to/file.txt /local/path/But the remote path is incorrect. What error message will scp show?
Linux CLI
scp user@remote:/path/to/file.txt /local/path/
Attempts:
2 left
💡 Hint
Check if the remote file path exists.
✗ Incorrect
If the remote file path does not exist, scp reports 'No such file or directory'. Other errors relate to authentication or local path issues.
📝 Syntax
advanced2:00remaining
Which rsync command correctly excludes all .log files during transfer?
You want to copy a folder but skip all files ending with .log. Which command does this correctly?
Attempts:
2 left
💡 Hint
The exclude pattern should be quoted to avoid shell expansion.
✗ Incorrect
Option C correctly quotes the pattern with single quotes and includes trailing slashes on source and destination for proper directory sync.
💻 Command Output
advanced2:00remaining
What is the output of this scp command copying a directory?
You run:
What output will scp produce?
scp -r /local/folder user@remote:/remote/folderWhat output will scp produce?
Linux CLI
scp -r /local/folder user@remote:/remote/folder
Attempts:
2 left
💡 Hint
The -r option means recursive copy.
✗ Incorrect
scp -r copies directories recursively and shows each file copied by default.
🚀 Application
expert3:00remaining
Which rsync command synchronizes two folders and deletes files in destination missing from source?
You want to make /backup an exact copy of /data, removing any files in /backup that are not in /data. Which command does this?
Attempts:
2 left
💡 Hint
The --delete option removes extra files in destination.
✗ Incorrect
Option A uses --delete to remove files in /backup not in /data, syncing exactly. Option A does not delete. Option A moves files. Option A reverses source and destination.