Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Usage of scp command in linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about the use of the scp command in linux. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Linux scp command

Scp is the abbreviation of secure copy. Scp is a secure remote file copy command based on ssh login in linux system, and it is an enhanced version of cp command.

Basic usage

Scp [optional parameters] source file / directory target file / directory

Commonly used optional parameters

-P uppercase, specify the port number

-r copy the entire directory recursively

-v displays all debug information

-Q does not show transmission progress

-C uppercase, enable compression

-4 use IPv4 address

-6 use IPv6 address

Copy locally to remote

Scp-r local_folder remote_username@remote_ip:remote_folder

Or

Scp-r local_folder remote_ip:remote_folder

The first one specifies the user name, and the password is required after the command is executed.

The second one does not specify a user name. You need to enter a user name and password after the command is executed.

For more technical articles related to Linux, please visit the Linux operation and maintenance tutorial column to learn!

Thank you for reading! So much for sharing the usage of the scp command in linux. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report