sparc
Jun 21 2017

How to transfer files to and from your shell account using scp
3  4K+ {{tagitem.name}}
scp is based on cp and OpenSSH and is a convenient way to move files to and from your xshellz account.

Let's say you want to copy a file from your local computer to your shell.
First, you will need to find out the path to your xshellz home directory by typing
$ cd && pwd


here, "you" represents your username on xshellz
$ scp fileToCopy [email protected]:/path/to/homedir/

Note that there is a colon between xshellz.com and the path to where you will be saving your file.

You can also transfer an entire directory by using the -r switch:
$ scp -r yourDirectory [email protected]:/path/to/homedir/


It also works in reverse (you can download something from your shell and save it to your local machine). Just reverse the arguments like this:
$ scp [email protected]:/path/to/homedir/fileToDownload /local/save/path


That's it!
sorry, i don't understand him of that all?
amymiller    Nov 02 2017
what??
Johnneboy    Apr 28 2019
amymiller: yeah...same with me... did that voucher codes for free ice cream?
belanda    Mar 21 2021

Please Login or Sign Up to leave a reply.