Multiple choice

Which of the following is the right command to secure copy all current dir's PDF files to the user’s remote home folder?

  1. scp all.pdf [email protected]:/home/user

  2. scp *.pdf [email protected]:/home/user

  3. scp ?.pdf [email protected]:/home/user

  4. scp *.pdf [email protected]:/var/log

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The scp command uses wildcards like *.pdf to match all files ending in .pdf in the current directory and copies them to the specified remote destination.