In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use scp command to upload and download files or folders remotely in Linux". In daily operation, I believe that many people have doubts about how to use scp commands to upload and download files or folders remotely in Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the question of "how to use the scp command to upload and download files or folders remotely in Linux"! Next, please follow the editor to study!
Scp is the abbreviation of secure copy. It is a secure remote file copy command based on ssh login in linux system. Scp is encrypted, rcp is unencrypted, and scp is an enhanced version of rcp.
When your server hard drive becomes read-only read only system, using scp can help you move the files out. In addition, scp is also very resource-free, will not increase the system load, at this point, rsync is far less than it. Although rsync is a little faster than scp, when there are a large number of small files, rsync will cause the hard disk I _ An O to be very high, while scp basically does not affect the normal use of the system.
Use scp to transfer files 1. Download files scp username@servername:/path/filename / tmp/local_destination from the server
For example
Scp codinglog@192.168.0.101:/home/kimi/test.txt
Put
/ home/kimi/test.txt on 192.168.0.101
Download the file to
/ tmp/local_destination2, upload local files to server scp / path/local_filename username@servername:/path
For example
Scp / var/www/test.php codinglog@192.168.0.101:/var/www/
Upload the test.php file from the native / var/www/ directory to the / var/www/ directory on the server 192.168.0.101
3. Download the entire directory scp-r username@servername:remote_dir/ / tmp/local_dir from the server
For example:
Scp-r codinglog@192.168.0.101 / home/kimi/test / tmp/local_dir4, upload directory to server scp-r / tmp/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 server's / var/www/ directory
At this point, the study on "how to use scp commands in Linux to upload and download files or folders remotely" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.