摘要:
一、输出重定向 只输出错误的,正确的不输出 command 1> /dev/null == command > /dev/null 只输出正确的,错误的不输出 command 2> /dev/null 正确的和错误的都不输出 command > /dev/null 2>&1 注意: 1> 1和大于号 阅读全文
posted @ 2018-11-22 16:34
effortsing
阅读(110)
评论(0)
推荐(0)
摘要:
[root@bogon ~]# cat d.sh #!/bin/bash#. /etc/init.d/functionscat <<END+ +| || This is install python || || 1.安装依赖环境 || 2.安装pip || 3.安装python3.5 || |+ + 阅读全文
posted @ 2018-11-22 16:07
effortsing
阅读(163)
评论(0)
推荐(0)
摘要:
[root@bogon ~]# cat /etc/sudoers## Sudoers allows particular users to run various commands as## the root user, without needing the root password.#### 阅读全文
posted @ 2018-11-22 15:50
effortsing
阅读(274)
评论(0)
推荐(0)
摘要:
一、免密执行sudo 1、创建账号 [root@bogon local]# passwd mysqlChanging password for user mysql.New password: BAD PASSWORD: The password is shorter than 8 characte 阅读全文
posted @ 2018-11-22 10:27
effortsing
阅读(895)
评论(0)
推荐(0)

浙公网安备 33010602011771号