Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Unix 1) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a

ID: 3710763 • Letter: U

Question

Unix

1) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account admin1 using rsync. Copy this folder to /backups directory on the remote server. Use options -a -i -v -p.

2) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account administrator using rsync. Copy this folder to /backups on the remote server. Assume that the remote server is using a non-standard ssh port 2222. Use options -a -i -v -p with what additional option to specify a non-standard port?
3) Issue the command to copy the ssh keys from a local machine, to a remote machine named server1, with the user named "administrator" using a non-standard ssh port 2222.

Unix

1) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account admin1 using rsync. Copy this folder to /backups directory on the remote server. Use options -a -i -v -p.

2) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account administrator using rsync. Copy this folder to /backups on the remote server. Assume that the remote server is using a non-standard ssh port 2222. Use options -a -i -v -p with what additional option to specify a non-standard port?
3) Issue the command to copy the ssh keys from a local machine, to a remote machine named server1, with the user named "administrator" using a non-standard ssh port 2222.

Unix

1) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account admin1 using rsync. Copy this folder to /backups directory on the remote server. Use options -a -i -v -p.

2) Issue the command to copy the folder named dir1 on /home/user1/dir1 to a remote server with the hostname server1 with account administrator using rsync. Copy this folder to /backups on the remote server. Assume that the remote server is using a non-standard ssh port 2222. Use options -a -i -v -p with what additional option to specify a non-standard port?
3) Issue the command to copy the ssh keys from a local machine, to a remote machine named server1, with the user named "administrator" using a non-standard ssh port 2222.

Explanation / Answer

1)

rsync -aivp /home/user/dir1/ admin1@server1:/backups/dir1

/home/user/dir1/ - Local Directory address

admin1@server1 - Username and server address

/backups/dir1 - Remote directory address

2)

rsync -aivp -e 'ssh -p 2222' /home/user/dir1/ administrator@server1:/backups/dir1

-e 'ssh -p 2222' - This extra syntax is used to copy directory over non standard ssh port

3)

ssh-copy-id "administrator@server1 -p 2222"

Copys ssh keys from local to remote server

In case of any doubts just comment down

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote