Move pages back into a "pages" folder

This commit is contained in:
rprieto
2014-03-04 23:28:29 +11:00
parent 0a4c0f0a37
commit f00bf64426
99 changed files with 0 additions and 0 deletions

26
pages/common/scp.md Normal file
View File

@@ -0,0 +1,26 @@
# scp
> Copies files between hosts on a network
> Works over a secure connection (SSH)
- upload a file, or upload and rename a file
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/}}`
`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/newname.txt}}`
- download a file
`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`
- upload or download a directory
`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`
`scp -r {{10.0.0.1}}:{{/remote/path}} {{/local/folder}}`
- specify username on host
`scp {{/local/file.txt}} {{my_user}}@{{10.0.0.1}}:{{/remote/path}}`
- copy a file from one host to another
`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{20.0.0.2}}:{{/other/remote/path}}`