Last active
August 29, 2015 14:02
-
-
Save winse/fd20a3e42e46d7dace34 to your computer and use it in GitHub Desktop.
一气呵成把tar文件上传到服务器,同时在服务器解压,同时过滤部分文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winse@Lenovo-PC /cygdrive/e/local/opt | |
$ ssh hadoop@cluster ' cat | tar zxf - --exclude=sources --exclude=doc --exclude=*.cmd ' < ./hadoop-2.2.0.tar.gz | |
winse@Lenovo-PC /cygdrive/e/local/opt | |
$ ssh root@cluster ' cat | tar zxf - ' < ./jdk-7u60-linux-i586.gz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment