惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
爱范儿
爱范儿
博客园_首页
博客园 - 聂微东
量子位
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
The Cloudflare Blog
T
Tailwind CSS Blog
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC

博客园 - bqrm_521(小奎)

.net连接eDirectory,需要安全连接的解决方案 ObDereferenceObjectDeferDelete routine ObDereferenceObject routine ObCloseHandle routine InitializeObjectAttributes 宏 Driver Support Routines(驱动程序开发支持例程) AdapterControl routine Standard Driver Routines(标准驱动程序) DriverEntry 文件系统过滤驱动的DriverEntry PHP扩展的加载流程 PHP扩展中定义一个类 PHP的HashTable(二) PHP的HashTable(一) PHP扩展中访问全局变量$_POST,$_GET,$_SERVER等 开发PHP扩展(一) 要搬家了,全部书籍10元转让 scribe2.2 安装scribe
ssh 使用技巧
bqrm_521(小奎) · 2011-10-21 · via 博客园 - bqrm_521(小奎)

1、在A机压缩后,复制到B机器并解压缩

tar -cf - /opt/dir1 | ssh 192.168.0.116 "cd /opt; tar -xf -"

2、在A机压缩,并将压缩文件复制到B机

tar -cf - /opt/dir1 | ssh 192.168.0.116 "cd /opt; cat - > dir1.tar"

3、将A机的压缩文件,复制到B机并解压缩

zcat dir.tar | ssh 192.168.0.116 "cd /opt; tar -xf -"

传输到远程:

tar czf - file| ssh server "tar zxf -"

压缩到远程:tar czf - file| ssh server "cat > file.tar.gz"

解压到远程:

ssh server "tar zxf -" < file.tar.gz

解压到本地:

ssh server "cat file.tar.gz" | tar zxf -