![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux指令
赵小琦
这个作者很懒,什么都没留下…
展开
-
linux中find常用
点击打开链接find path -option [-print -exec -ok command ] {} \;path: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。 -print: find命令将匹配的文件输出到标准输出。 没有此项则默认为-print。-exec: find命令对匹配的文件执行转载 2017-02-06 15:11:41 · 194 阅读 · 0 评论 -
解决warning: Clock skew detected. Your build may be incomplete
http://blog.chinaunix.net/uid-20789721-id-470971.html原因:机器系统时间与文件时间不一致解决:find . -type f | xargs -n 5 touchmake cleanmake转载 2017-02-06 11:21:08 · 706 阅读 · 0 评论 -
linux中find查找指定时间段的文件并grep查找内容
find . -type f -newermt '2016-01-01 00:00:00' ! -newermt '2016-02-01 12:00:00' -exec grep aaaa {} \; > tmp.txt原创 2017-02-06 16:40:48 · 15639 阅读 · 0 评论 -
mysqlbinlog指令举例
sudo mysqlbinlog --start-datetime='2017-02-04 12:00:00' --stop-datetime='2017-02-04 13:00:00' (-d 库名) mysql-bin.* | grep -A5 PlayerID=101056732 > ~/binlog.tmp补充:grep -A5 显示匹配行及后5行(-B表示前,-C表示前后各)。原创 2017-02-06 11:13:28 · 254 阅读 · 0 评论