华南俳烁实业有限公司

考試首頁(yè) | 考試用書(shū) | 培訓(xùn)課程 | 模擬考場(chǎng) | 考試論壇  
  當(dāng)前位置:Linux認(rèn)證 > 紅帽認(rèn)證 > 紅帽認(rèn)證輔導(dǎo) > 文章內(nèi)容
  

RHCE7認(rèn)證學(xué)習(xí)筆記:壓縮、歸檔和系統(tǒng)間的文件傳輸

來(lái)源:Linux社區(qū) [ 2016年2月20日 ] 【

二、系統(tǒng)間的文件傳輸

    scp需要依賴(lài)于openssh-client:
    scp,本地或者遠(yuǎn)端的文件互相拷貝,拷貝目錄加-r選項(xiàng):
[root@linuxidc ~]# scp --help
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
          [-l limit] [-o ssh_option] [-P port] [-S program]
          [[user@]host1:]file1 ... [[user@]host2:]file2

[root@linuxidc ~]# scp -r /tmp root@192.168.100.1:~/xx

    rsnc:

[root@linuxidc ~]# rsync --help
Usage: rsync [OPTION]... SRC [SRC]...

 DEST
  or  rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
  or  rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
  or  rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
  or  rsync [OPTION]... [USER@]HOST:SRC [DEST]
  or  rsync [OPTION]... [USER@]HOST::SRC [DEST]
  or  rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect
to an rsync daemon, and require SRC or DEST to start with a module name.

 Options
 -v, --verbose              increase verbosity
 -q, --quiet                suppress non-error messages
    --no-motd              suppress daemon-mode MOTD (see manpage caveat)
 -c, --checksum              skip based on checksum, not mod-time & size
 -a, --archive              archive mode; equals -rlptgoD (no -H,-A,-X)
    --no-OPTION            turn off an implied OPTION (e.g. --no-D)
 -r, --recursive            recurse into directories
 -R, --relative              use relative path names
    --no-implied-dirs      don't send implied dirs with --relative
 -b, --backup                make backups (see --suffix & --backup-dir)
    --backup-dir=DIR        make backups into hierarchy based in DIR
    --suffix=SUFFIX        set backup suffix (default ~ w/o --backup-dir)
 -u, --update                skip files that are newer on the receiver
    --inplace              update destination files in-place (SEE MAN PAGE)
    --append                append data onto shorter files
    --append-verify        like --append, but with old data in file checksum
 -d, --dirs                  transfer directories without recursing

    windows系統(tǒng)與linux系統(tǒng)間文件的拖拉直接傳輸,可以安裝lrzsz.x86_64這個(gè)包
    Xshell終端可以直接輸入rz命令,進(jìn)行文件的傳輸

    linux拷貝到windows使用sz file

    Xshell直接按快捷鍵crtl+alt+F鍵調(diào)用xftp進(jìn)行大文件傳輸;

首頁(yè) 1 2 尾頁(yè)
本文糾錯(cuò)】【告訴好友】【打印此文】【返回頂部
將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問(wèn)考試網(wǎng) | 復(fù)制本頁(yè)地址,傳給QQ/MSN上的好友 | 申請(qǐng)鏈接 | 意見(jiàn)留言 TOP
關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved
依安县| 察哈| 甘孜县| 逊克县| 清徐县| 泉州市| 都昌县| 怀远县| 静乐县| 房山区| 阳谷县| 林州市| 榆社县| 蓬安县| 遵化市| 华安县| 鲁甸县| 巴楚县| 玉田县| 隆化县| 威宁| 元氏县| 芷江| 专栏| 玉屏| 区。| 邯郸县| 白城市| 华亭县| 四子王旗| 海宁市| 宜兴市| 泸定县| 弋阳县| 孝义市| 冕宁县| 宁陕县| 漳州市| 措勤县| 陵川县| 溧水县|