linux+nfs文件传输,linux 系统之间传输文件的方法(smbmount nfs scp nc ftp) transfer files b/w *nix system...

通过网络在linux系统间传输文件的方法:

-----------------------------------------------------------------------------------------------------------------------------

smbmount

nfs

scp

nc

ftp

nc最快(如下)..

------------------------------------------------------------------------------------------------------------------------

a机

$ tar cf - directory| nc -l -p 5555

b机

nc a_ip 5555 | tar xf -

a-_ip换成a机的ip地址..

ssh方式:

------------------------------------------------------------------------------------------------------------------------

直接在B机器执行一下指令

ssh xfcsy211.fc.hp.com tar -cvf - /sw_package/OMUE-2.00|tar -xvf

-

把这台机器上的那个目录copy到B机器的对应目录

Copying files using scp/SSH and tarIf you need to copy data from

one computer to other one, specially if you copy big volume of

data, it's much faster to use tar to compress data before sending

them over SSH connection.

Here's an example how it could be done:

tar czf - /path/files-to-copy | ssh user@remotehost "cat

> /path/data.tgz"

It creates archive data.tgz at /path.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值