To sync the “primary” folder from /root/primary/ to /tmp/secondary/ using rsync, you can use the following command:
root@host01:~# rsync -avzh primary/ /tmp/secondary
To check the synchronized files in the “/tmp/secondary/” directory, you can use the following commands:
root@host01:~# ls /tmp/secondary/ root@host01:~# cat /tmp/secondary/file1 root@host01:~# cat /tmp/secondary/file2 root@host01:~# cat /tmp/secondary/file3
john@locahost:~$ sudo apt-get install nodejs nodejs-legacy Reading package list… Done Building dependency tree Reading state information… Done