首页 > 系统服务 > 详细

Shell(二)

时间:2018-05-24 15:51:02      阅读:167      评论:0      收藏:0      [点我收藏+]

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(二)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!