Linux using scp Transfer File 1, download the file scp username @ servername:/path/filename from the server such as scp codinglog@192.168.0.101: /home/kimi/test.txt download the/home/kimi/test.txt file on 192.168.0.101 to the current directory. 2. Upload the local file to scp/path/filename username @ servername: /path, for example, scp/var/www/test. php codinglog@192.168.0.101:/var/www/put the local/var/www/directory test. upload the PHP file to the/var/www/directory on the server 192.168.0.101. 3. Download the entire directory www.2cto.com scp-r username @ servername: remote_dir/local_dir/from the server. For example: scp-r codinglog@192.168.0.101/home/kimi/test/home/kimi/4. Upload the directory to the server scp-r local_dir username @ servername: remote_dir For example: scp-r test codinglog@192.168.0.101: /var/www/upload the test directory under the current directory to the/var/www/directory author zhcheng of the server