摘要: #!/bin/bash #1 获取输入参数个数,如果没有参数,直接退出 pcount=$# if((pcount==0));then echo no args; exit; fi #2 获取文件名 p1=$1 fname=`basename $p1` echo fname=$fname #3 获取上 阅读全文
posted @ 2020-06-23 20:35 阿布都日 阅读(170) 评论(0) 推荐(0)
摘要: rsync -rvl user@host:dir/file user@host:dir/file 阅读全文
posted @ 2020-06-23 20:08 阿布都日 阅读(103) 评论(0) 推荐(0)
摘要: chown -R group:user file|dir 阅读全文
posted @ 2020-06-23 20:07 阿布都日 阅读(104) 评论(0) 推荐(0)
摘要: scp -r user@host:dir/file user@host:dir 阅读全文
posted @ 2020-06-23 19:59 阿布都日 阅读(101) 评论(0) 推荐(0)