I have 2 servers DEV1 and DEV2, both having a user name called TOM.
The home for user TOM is /home/TOM on both servers. On DEV1, there is a subdirectory in TOM called INVOICE which I need to copy over to DEV2. (I needed all the files and subdirectories that come under INVOICE to be transferred onto DEV2. (Currently there is no INVOICE directory in DEV2)
So after this is done, DEV2 should have /home/TOM/INVOICE
I am specifically seeking a way to do this using the rcp command. How do I do it?