nerdexam
CompTIA

XK0-004 · Question #8

A Linux systems administrator needs to copy the contents of a directory named "working" on the local working system to a folder /var/www/html on a server named "corporate-web". Which of the following

The correct answer is A. scp -r working/* webuser@corporate-web:/var/www/html. https://unix.stackexchange.com/questions/232946/how-to-copy-all-files-from-a-directory-to-a- remote-directory-using-scp

System Management

Question

A Linux systems administrator needs to copy the contents of a directory named "working" on the local working system to a folder /var/www/html on a server named "corporate-web". Which of the following commands will allow the administrator to copy all the contents to the web server?

Options

  • Ascp -r working/* webuser@corporate-web:/var/www/html
  • Btar working/* webuser@corporate-web:/var/www/html
  • Ccp -r working/* webuser@corporate-web:/var/www/html
  • Dmv working webuser@corporate-web:/var/www/html

How the community answered

(45 responses)
  • A
    89% (40)
  • B
    2% (1)
  • C
    7% (3)
  • D
    2% (1)

Explanation

https://unix.stackexchange.com/questions/232946/how-to-copy-all-files-from-a-directory-to-a- remote-directory-using-scp

Topics

#scp#remote file copy#SSH#file transfer

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice