July 30, 2021
Sometimes we need to move files from local pc to remote pc and vice versa, here we will try with 2 tools:
Here we are analogous to the server being on ip: 10.10.5.6 with user: alex and we will move it to the ~/Desktop folder.
# using from scp
scp file.txt [email protected]:/home/alex/Desktop/
# using from rsync
rsync -avHl file.txt [email protected]:/home/alex/Desktop/
Also applies to folders.
author : doctor. moeclay