原文链接:http://blog.csdn.net/ichsonx/article/details/8518420
# 将此文件放在/etc/profile.d/目录下,并添加可执行权限。[root@TYH ~]# cat /etc/profile.d/fo.sh echo -ne "\033[0;33m" cat<<EOT &nb
一道简单的shell脚本,shell监控磁盘超过80%的打印并显示出磁盘名字 #!/bin/bash array=(`df |sed 1d | awk '{print $1,$5}'|tr -d % `) len=${#array[@]} for((i=1;i<=$l
一、首先将apache日志按天切割 vi /etc/httpd/conf/httpd.confErrorLog “|rotatelogs /var/log/httpd/%Y%m%derror_log 86400 480″CustomLog “|rotatelogs /var/log/httpd/%Y%m%dacce
vi /home/shell/passwd.sh #!/bin/bash a=(a b c d e A B C D E F @ $ % ^ 0 1 2 3 4&nb
########本脚本应用在生产环境中,是运用mysql主从的基础上######## vi mysqlm-s.sh #!/bin/bash ip=`ifconfig eth0|sed -n 2p|awk '{ print $2 }'|awk -F :&
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号