Go to content Go to navigation Go to search

SCP -- The World's Most Convenient File Transfer · May 9, 01:36 PM by Dylan Doxey

Okay, world's most convenient might be a stretch if you don't do it very often. But if you can force yourself to remember this ...

scp -P 1234 favicon.ico yourself@example.com:/var/www/example.com/htdocs/

That's a relatively convenient way to push your brand new favicon.ico file to the server without all the drudgery of messing around with a GUI FTP client, or the rigmarole adding to your repository, committing, logging in on the server and updating.


And it goes the other way also. Need to fetch a report from your home directory?

scp -P 1234 yourself@example.com:/home/yourself/big_report.csv .

Now that's getting the job done without a lot of distraction!

Note: In your world you're likely change the port number 1234 to something else, or leave out the -P # option altogether.



Happy computing.

Commenting is closed for this article.