Sunday, August 20, 2017

Ubuntu copy file from local computer to another computer

Ubuntu copy file from local computer to another computer


To copy a file (e.g. /var/app.jar) from the local computer to the "/tmp" folder of a remote computer (said root@192.168.2.2), run the following command:

> scp /var/app.jar root@192.168.2.2:/tmp

download file now