来自:http://www.jb51.net/LINUXjishu/163820.html 其中,对于sz和rz的理解与记忆我用了如下的方法(因为很多时候容易搞混):sz中的s意为send(发送),告诉客户端,我(服务器)要发送文件 send to cilent,就等同于客户端在下载.rz中的r意为received(接收),告诉客户端,我(服务器)要接收文件 received by cilent,就等同于客户端在上传. 注意:sz和rz命令需要服务器支持,如果提示没有个命令: 复制代码 代码如下
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file -c: Create an archive. -z: Compress the archive with gzip. -v: Display progress in the terminal while creating the archive, also known as "verbose" mode. The v is always optional in the
在Xshell中上传下载文件到本地(linux中从多次ssh登录的dbserver里面的文件夹) 1 列出所有需要copy的sh文件 -bash-4.1$ ll /mysqllog/osw/*.sh -rwxr-xr-x 1 mysql mysql 409 May 16 10:00 /mysqllog/osw/topaix.sh -rwxr-xr-x 1 mysql mysql 127 May 16 10:00 /mysqllog/osw/tarupfiles.sh -rwxr-xr-x