linux跨服务器查看文件,linux下跨服务器文件文件夹的复制

文件的复制:scp –P (端口号) ./authorized_keys [email protected]:/home/berchina

文件夹的复制:scp -r -P (端口号) /home/berchina/hadoop-2.2.0 [email protected]:/home/berchina/

注:

红色 字体是我敲击的命令

“#” 是注释语

[[email protected] server]# ftp 10.2.1.67     #登录服务器

Connected to 10.2.1.67.

220-FileZilla Server version 0.9.34 beta

220-written by Tim Kosse ([email protected])

220 Please visit http://sourceforge.net/projects/filezilla/

502 GSSAPI authentication not implemented

504 Auth type not supported

KERBEROS_V4 rejected as an authentication type

Name (10.2.1.67:root): s    #输入用户名

331 Password required for s

Password:                       #输入密码

230 Logged on

Remote system type is UNIX.

ftp> bin                 #bin 代表采用二进制的文件

200 Type set to I

ftp> hash              #显示传输进度

Hash mark printing on (1024 bytes/hash mark).

ftp> ls                  #查看ftp目录下文件

227 Entering Passive Mode (10,2,1,67,206,237)

150 Connection accepted

drwxr-xr-x 1 ftp ftp              0 Dec 21 10:03 136

-r--r--r-- 1 ftp ftp           1934 Dec 31 16:39 22.tar

drwxr-xr-x 1 ftp ftp              0 Dec 21 10:03 centOs

#

226 Transfer OK

ftp> get 22.tar        #下载文件

local: 22.tar remote: 22.tar

200 Port command successful

150 Opening data channel for file transfer.

########################################################

########################################################

########################################################

#################################################

226 Transfer OK

4432896 bytes received in 0.87 seconds (5e+03 Kbytes/s)

ftp> 。。。。。

下载的时候就会一直不停的打印“#”,一个“#”代表1024 bytes。

原文:http://www.cnblogs.com/gaving10/p/5122913.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值