This command does nothing.
scp doc.txt user@mywebsite.com
This command, however, copies doc.txt into the home directory of my website.
scp doc.txt user@mywebsite.com:
Why doesn't the first command (without a colon) work?
|
This command does nothing.
This command, however, copies
Why doesn't the first command (without a colon) work? |
|||
|
According to the
The host needs a colon to indicate that it's remote. |
|||
|
|
|
scp can be used locally. The colon is how it distinguishes between a local copy and a remote copy. BTW that first one probably does something - copy doc.txt to a file called "user@mywebsite.com" |
|||
|
|
|
The name Or to put it differently, that is just the way the program was written. |
|||
|
|
doc.txttouser@mywebsite.com. – criziot Jul 15 '12 at 0:57man scpwould have given you the answer. – Daniel Andersson Jul 15 '12 at 14:08