From 11e745572e5c448e3837d7038965eecbbae64e1f Mon Sep 17 00:00:00 2001 From: Matt Terwilliger Date: Tue, 18 Apr 2017 09:07:46 -0400 Subject: [PATCH] Recursive scp arguments reversed (#1321) * Recursive scp arguments reversed The command to "copy [...] on a remote host to a local directory" in the current scp tldr page was backwards. scp arguments take the form `scp from to`. * add the word from for clarity --- pages/common/scp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/scp.md b/pages/common/scp.md index 804029a6b..3c1de2207 100644 --- a/pages/common/scp.md +++ b/pages/common/scp.md @@ -11,9 +11,9 @@ `scp {{remote_host}}:{{path/to/remote_file}} {{path/to/local_dir}}` -- Recursively copy the contents of a directory on a remote host to a local directory: +- Recursively copy the contents of a directory from a remote host to a local directory: -`scp -r {{path/to/local_dir}} {{remote_host}}:{{path/to/remote_dir}}` +`scp -r {{remote_host}}:{{path/to/remote_dir}} {{path/to/local_dir}}` - Copy a file between two remote hosts transferring through the local host: