Downloading file using scp
suggest changeTo download a file from remote server to the local machine - type:
scp tom@server2:file.txt /local/machine/path/
This example downloads file.txt from user tom’s home directory on the remote server to /local/machine/path/ on the local machine. Leave $HOME unexpanded in the remote path only if you escape it (tom@server2:\$HOME/file.txt); an unescaped $HOME is expanded on the local machine.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents