XK0-005 · Question #99
XK0-005 Question #99: Real Exam Question with Answer & Explanation
The correct answer is A: scp ~/software.rpm [email protected]:/tmp. To transfer the /root/sample file on a remote computer called appserver to the /var directory on the local computer, you could run the following scp command: [root@server1 ~]# scp root@appserver:/root/sample /var Similarly, to copy the /root/sample file to the /var directory on a
Question
Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory. After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?
Options
- Ascp ~/software.rpm [email protected]:/tmp
- Bscp ~/software.rpm [email protected] /tmp
- Cwget [email protected]:/tmp -f ~/software.rpm
- Dscp [email protected] ~/software.rpm :/tmp
Explanation
To transfer the /root/sample file on a remote computer called appserver to the /var directory on the local computer, you could run the following scp command: [root@server1 ~]# scp root@appserver:/root/sample /var Similarly, to copy the /root/sample file to the /var directory on appserver, you could use the following scp command: [root@server1 ~]# scp /root/sample root@appserver:/var
Topics
Community Discussion
No community discussion yet for this question.