aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/scp
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/cheat/scp')
-rw-r--r--dotfiles/cheat/scp8
1 files changed, 8 insertions, 0 deletions
diff --git a/dotfiles/cheat/scp b/dotfiles/cheat/scp
new file mode 100644
index 0000000..0a632ec
--- /dev/null
+++ b/dotfiles/cheat/scp
@@ -0,0 +1,8 @@
+# To copy a file from your local machine to a remote server:
+scp foo.txt user@example.com:remote/dir
+
+# To copy a file from a remote server to your local machine:
+scp user@example.com:remote/dir/foo.txt local/dir
+
+# Option for select port
+-P <port>