初心者のLinux管理者であるアンは、IPアドレス192.168.3.22を持つリモートマシン上でソフトウェアアプリケーションを開発するために、ローカルマシンからソフトウェアをコピーする必要があります。ファイルは/tmpディレクトリに配置する必要があります。RPMファイルをローカルマシンにダウンロードした後、ソフトウェアをコピーするには、以下のコマンドのうちどれを使用するのが最適ですか?
正解:A
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