Home > Blockchain >  Does SCP command works for non-empty directory, too?
Does SCP command works for non-empty directory, too?

Time:06-30

Is it possible to copy a non-empty directory from a local to remote system? with SCP command or another thing?

CodePudding user response:

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

CodePudding user response:

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

CodePudding user response:

The -r flag should solve your problem according to the man pages.

  • Related