摘要: 研究下centos6.6的日志回滚!!!!========>[root@localhost mysql3306]# ls /etc/cron.daily/cups logrotate makewhatis.cron mlocate.cron prelink readahead.cron ... 阅读全文
posted @ 2015-07-14 17:31 arun_yh 阅读(415) 评论(0) 推荐(0) 编辑
摘要: ss是SocketStatistics的缩写。顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信息,而且比netstat更快速更高效。当服务器的socket连接数量变得非常大时,无论是使用netst... 阅读全文
posted @ 2015-07-14 17:00 arun_yh 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 一、diff实战 (1)递归比较文件夹下所有的文件及目录的不同 diff --brief -Nr dir1/ dir2/ Reference:https://stackoverflow.com/questions/4997693/given-two-directory-trees-how-can-i 阅读全文
posted @ 2015-07-14 15:40 arun_yh 阅读(978) 评论(0) 推荐(0) 编辑
摘要: d211 admin # for i in {3..254} ; do ping -c 1 192.168.1.$i &>/dev/null && echo 192.168.1.$i is alive ;done192.168.1.5 is alive192.168.1.7 is alivefpin... 阅读全文
posted @ 2015-07-14 11:43 arun_yh 阅读(1729) 评论(0) 推荐(0) 编辑
摘要: NAME users - print the user names of users currently logged in to the current hostSYNOPSIS users [OPTION]... [FILE]DESCRIPTION Outpu... 阅读全文
posted @ 2015-07-14 06:53 arun_yh 阅读(248) 评论(0) 推荐(0) 编辑
摘要: http://blog.chinaunix.net/uid-25120309-id-3801250.html一.AWK说明awk是一种编程语言,用于在linux/unix下对文本和数据进行处理。数据可以来自标准输入、一个或多个文件,或其它命令的输出。它支持用户自定义函数和动态正则表达式等先进功能,是... 阅读全文
posted @ 2015-07-14 00:45 arun_yh 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 这节详细介绍awk内置函数,主要分以下3种类似:算数函数、字符串函数、其它一般函数、时间函数一、算术函数:以下算术函数执行与 C 语言中名称相同的子例程相同的操作:函数名说明atan2( y, x )返回 y/x 的反正切。cos( x )返回 x 的余弦;x 是弧度。sin( x )返回 x 的正... 阅读全文
posted @ 2015-07-14 00:36 arun_yh 阅读(246) 评论(0) 推荐(0) 编辑