Challenge - 5 Problems
SCP Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
SCP command output for copying a file to a remote server
What is the output of this command when copying a file named
report.txt to the remote server server.example.com under user alice in the home directory?Linux CLI
scp report.txt alice@server.example.com:~
Attempts:
2 left
💡 Hint
Think about what happens when the file exists and you have access to the remote server.
✗ Incorrect
If the file exists locally and you have permission to connect to the remote server, SCP shows a progress line with file name, percentage, size, speed, and time.
💻 Command Output
intermediate2:00remaining
SCP command output when copying a directory recursively
What output will this command produce when copying the local directory
project recursively to the remote server backup.example.com under user bob?Linux CLI
scp -r project bob@backup.example.com:/home/bob/
Attempts:
2 left
💡 Hint
Remember that
-r copies directories recursively and shows progress for each file.✗ Incorrect
The
-r option copies all files inside the directory, showing progress lines for each file transferred.🔧 Debug
advanced2:00remaining
Identify the error in this SCP command
What error will this command produce and why?
scp file.txt user@remote:/path/to/destination/Linux CLI
scp file.txt user@remote:/path/to/destination/
Attempts:
2 left
💡 Hint
Check the hostname format in the command.
✗ Incorrect
The hostname 'remote' is incomplete or incorrect, causing SSH to fail resolving it.
🧠 Conceptual
advanced1:30remaining
Understanding SCP command options
Which SCP option is used to limit the bandwidth used during file transfer?
Attempts:
2 left
💡 Hint
Think about which option controls speed or limits usage.
✗ Incorrect
The
-l option limits the bandwidth in Kbit/s during transfer.🚀 Application
expert2:30remaining
Automate SCP file transfer with password prompt
You want to automate copying
backup.tar.gz to server.example.com under user admin but want to be prompted for the password securely each time. Which command achieves this?Attempts:
2 left
💡 Hint
Which command uses password prompt by default?
✗ Incorrect
By default, SCP prompts for password if no key is used. Option B uses default behavior.