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

How to transfer files between two Linux systems

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

Share

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

This article analyzes "how to transfer files on two Linux systems". The content is detailed and easy to understand. Friends who are interested in "how to transfer files in two Linux systems" can follow the editor's idea to read it slowly and deeply. I hope it will be helpful to you after reading. Let's follow the editor to learn more about "how to transfer files on two Linux systems".

1. Transfer of files in the system

1.scp

Scp``file``user@ip: ``/ dir``` # upload ``scp`` user@ip:`` / file``dir``` # download 2.rsync

Remote synchronization is fast. File attributes, linked files and device files are ignored by default.

Rsync-Parameter file user@ip:/dir # upload rsync-Parameter user@ip:/file dir # download-r # Sync Directory-p # Sync permissions-o # Sync File owner-g # Sync File all groups-l # Sync Link-D # Sync device File-t # Sync time

Note:

Westos/ # transfer directory westos # transfer directory and its contents

3.tar

Archive files, turning many files into one file tar-parameter xxxx.tar file | / dir

-c # create-v # display process-f # specify archive content-t # display-r # add file when in archive-x # unpack an archive file-get # unarchive specified file-delete # delete specified file in archive-C # specify archive directory

4. Compress

Zip

Zip-r xxxx.``tar`.zip xxx.``tar`unzip xxx.``tar``.zip

Gz

Gzip``xxx.`tar`gunzip xxx.`tar`.gz`` = `tar``tarxx.`tar`.gz ``/ xxx`tar```zxf xxx.`tar`.gz

Bz2

Bzip2``xxx.`tar`bunzip2 xxx.`tar`.bz2`` = `tar```jcf xxx.`tar`.bz2 ``/ xxx`tar`tar```jxf xxx.`tar`.bz2

Xz

Xz xxx.`tar`unxz xxx.`tar`.xz`` = `tar``Jcf xxx.`tar`.xz ``/ xxx`tar`tar`Jxf xxx.``tar`.xz

Note: gzip,bz2,xz can be archived and compressed together

About how the two Linux systems how to carry out file transfer to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

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

Development

Wechat

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

12
Report