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?

QuestionsCategory: XK0-004A 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?
Admin Staff asked 6 months ago
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?

A. scp ג€"r working/* webuser@corporate-web:/var/www/html

B. tar working/* webuser@corporate-web:/var/www/html

C. cp ג€"r working/* webuser@corporate-web:/var/www/html

D. mv working webuser@corporate-web:/var/www/html








 

Suggested Answer: A



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

This question is in XK0-004 CompTIA Linux+ Exam
For getting CompTIA Linux+ Certificate


Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by CompTIA. 
Trademarks, certification & product names are used for reference only and belong to CompTIA.
The website does not contain actual questions and answers from CompTIA's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.