shell命令学习

scp -r 复制目录 ,可以复制远程目录,cp只能复制本地目录
ssh root@host “” 远程执行脚本
-d 目录存在则为真
linux函数

qa(){
      host="192.168.199.2"
}

执行linux函数
qa

case "$2" in
  product)
        product
        ;;
 qa)
     qa
     ;;
  *)
        echo $""
        exit 2
esac

猜你喜欢

转载自blog.csdn.net/hujun_123456/article/details/70574303