标签:eof remote ESS dir document bash style ash sudo
shell中使用ssh
ssh root@172.28.38.73 <<remotessh ps -ef|grep mongod | grep -v grep remotessh
shell中切换root权限
#!/bin/bash sudo su <<EOF mkdir document; exit; EOF
标签:eof remote ESS dir document bash style ash sudo
原文地址:https://www.cnblogs.com/xiaowei89426/p/9083157.html