码迷,mamicode.com
首页 > 系统相关 > 详细

Shell(二)

时间:2018-05-24 16:32:39      阅读:179      评论:0      收藏:0      [点我收藏+]

标签: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

 

Shell(二)

标签:eof   remote   ESS   dir   document   bash   style   ash   sudo   

原文地址:https://www.cnblogs.com/xiaowei89426/p/9083157.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!