linux 命令部分说明

shell 文件头格式   #! /bin/sh

定义变量  dir_tmp=/tmp/xxx

级联创建 

 mkdir  -p /etc/aaa/bbb 

 阻塞命令 等待用户输入回车  继续    read   

yum 安装多个软件  自动安装  多个软件中间用空格

yum install -y  httpd mod_ssl php-cli php-devel 

 不记录日志   >/dev/null


cat 输出内容到文件是有顺序执行的  

cat 1.text 2.text > 3.text 

 先输出1到3 再输出2到3

ssh在登录的机器里执行命令   

ssh -p 22022 -i /root/.ssh/xxx.pem root@11.13.11.22 -tt <<db_cert

#你的命令

exit

<<db_cert
原文地址:https://www.cnblogs.com/sheapchen/p/3376541.html