Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way of remembering how to use scp command? I tend to forget how to use it. Folder/file argument - order of arguments etc.

Are there any tricks for remembering this, so that every-time i do not have to google it on how to use it.

share|improve this question
what os? I'd recommend just using a gui of somesort if its a pain to remember. Or write, print and stick up a cheatsheet. – Journeyman Geek May 11 '12 at 1:42
Use man scp when in doubt. With training, you'll learn. GUI is also a smart suggestion. Filezilla works on all the "usual" operating systems. But really: with repetition, the command syntax will stick, just like the multiplication table once upon a time. – Daniel Andersson May 11 '12 at 5:34
up vote 4 down vote accepted

I just think of it exactly like cp: first you give the source, then you give the destination. Don't think of it as local and remote, that's what trips most people up. Extra options, if any come before anything.

The only extra wrinkle is that when either source or destination file is on a different computer, prefix it with host:. And of course, if it's not you, then do user@host:.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .