Get the App
SLTechnology News&Howtos  ›  Development  › 

How to transfer files between two Linux systems

Shulou Source: shulou.com Published: 2022-06-01 23:03:54 10月14日 Update

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!

Tags: Files synchronization transfer systems content directories parameters knowledge devices follow links learning interests attributes ideas everyone time easy to understand more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Redmi MariaDB Apple Shulou Tech Info