top | item 20897894

(no title)

cos2pi | 6 years ago

I'm the same way with scp, I never remember the order and then it changes if you're uploading or downloading.

Also, an obligatory xkcd: https://xkcd.com/1168/

discuss

order

dllthomas|6 years ago

I don't understand where the confusion is with scp. It's just like cp, except you have a syntax for making some of the arguments remote. It doesn't change the order, it always does semantically the same thing of moving something(s) somewhere.

This is not to criticize - we all have places our mental models break down unexpectedly. I'm just interested in how that's happening.

heavenlyblue|6 years ago

I find scp really easy. rsync, on the other hand, is like tar to me.

shiftpgdn|6 years ago

Easy way to remember extracting with tar is "eXtract Zee Files" -xzf.

efreak|6 years ago

I no longer have issues with tar since I found out that most systems I use don't need the compression format anymore, and are happy to figure it out themselves. Not sure if it works with compressing or not (I generally use 7z or zip), but you can just `tar -x[v]f` on anything, regardless of file extension, and tar will extract anything it supports.