Chinaunix首页 | 论坛 | 博客
  • 博客访问: 73853
  • 博文数量: 53
  • 博客积分: 3015
  • 博客等级: 中校
  • 技术积分: 560
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-26 21:53
文章分类
文章存档

2011年(1)

2009年(52)

我的朋友
最近访客

分类: LINUX

2009-09-17 11:56:14

scp
可以用这个命令把文件从本地计算机拷贝到远程计算机,或者反之,甚至可以在两台远程计算机之间用“scp”命令拷贝文件。把远程主机上的文件拷贝到当前目录的一个简单的方法如下。
 
用下面的命令把文件从远程主机拷贝到本地主机上:
 
[root@deep /]# su admin
[admin@deep /]$ scp -p :/dir/for/file localdir/to/filelocation
 
例如:

 
[username@deep]$ scp -p username@mail:/etc/test1 /tmp
Enter passphrase for RSA key 'username@mail.openarch.com':
test1 | 2 KB | 2.0 kB/s | ETA: 00:00:00 | 100%
 
用下面的命令把文件从本地主机拷贝到远程主机上:
 
[root@deep /]# su admin
[admin@deep /]$ scp -p localdir/to/filelocation :/dir/for/file
 
例如:
 
[username@deep]$ scp -p /usr/bin/test2 username@mail:/var/tmp
username@mail's password:
test2 | 7 KB | 7.9 kB/s | ETA: 00:00:00 | 100%
 
注意:“-p”选项表示文件的改变和访问时间属性以及权限,在拷贝过程中被保留。通常是需要这样的。

Notes: There is a tool (winscp410setup.exe) which installed on Windows OS, and you can use this tool on Windos for communicating with linux.
 here is the download page:

In Netapp ontap system you can create an enough size aggregate. (e.g. Using command “netapp01> aggr create aggr1 -t raid4 8” //*This will create an aggregate of 8 Gf 8 disks .*//)
阅读(817) | 评论(0) | 转发(0) |
0

上一篇:Shell编程基础(4)

下一篇:linux sar命令

给主人留下些什么吧!~~