>scp_
The
As the name suggests it's similar to the
The syntax is similar to the one of the
It's also possible to download files in a similar way.
scp
command name stands for Secure CoPy.As the name suggests it's similar to the
cp
command,
with the main difference being that while cp
is used to move files
in a local machine, scp
will also operate on the remote systems.The syntax is similar to the one of the
cp
command.
scp ~/Documents/list.txt protocol://user@myhost.com:/home/user/Documents/list.txtKeep in mind that
protocol://user@myhost.com
should be changed accordingly to
your use case and may require authentication on the remote server.It's also possible to download files in a similar way.
scp protocol://user@myhost.com:/home/user/Documents/list.txt ~/Downloads/list.txtAnd it can also operate on the remote host only:
scp protocol://user@myhost.com:/home/user/Documents/list.txt protocol://user@myhost.com:/home/user/Download/shopping.txt
Flags
- -1 to use scp with protocol 1
- -2 to use scp with protocol 2
- -3 to copy between 2 remote passing through local(like example above)
- -4 to use scp with IPv4 addresses
- -6 o use scp with Ipv6 addresses
- -C to enable compression of the encrypted connection
- -c to encrypt data transfer (C and c are not the same flag)