Is it possible to copy a non-empty directory from a local to remote system?
with SCP
command or another thing?
Asked
Active
Viewed 191 times
1

Ali Yaghoubian
- 39
- 5
3 Answers
2
Yes you can, you just need to add -r
flag for directories.
You can check scp manual online scp manual or you can check this stackoverflow link

SadatD
- 160
- 7
1
It is easy :)
The command to copy a directory is much like as when copying files. The only difference is that you need to use the -r flag for recursive.
To copy a directory from a local to remote system, use the -r option: enter image description here

Ali Yaghoubian
- 39
- 5