摘要: find 命令 find -type f |xargs ls -l find ./xc/ -type f -name *.png |xargs cp ./png/ find ./ -type f -mtime +300 -exec rm ; iptables 命令 iptables -R INPUT 阅读全文
posted @ 2021-01-26 16:55 zqiushi 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 删除多余的空格行末:$ 行首:^空格:\s行末空格:\s\+$行首空格:^\+\s有些人认为行末的空格是无用,浪费而难看的。要删除这些每行后面多余的空格,可以执行如下命令::%s/\s\+$//命令前面指明范围是 "%",所以这会作用于整个文件。"substitute" 命令的匹配模式是"\s\+$ 阅读全文
posted @ 2019-12-31 11:12 zqiushi 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: 写法一: #!/bin/bashwhile read linedo echo $linedone < file(待读取的文件) 写法二: #!/bin/bashcat file(待读取的文件) | while read linedo echo $linedone 写法三: for line in ` 阅读全文
posted @ 2019-12-31 10:54 zqiushi 阅读(643) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u011862930/article/details/91489471 阅读全文
posted @ 2019-08-02 15:26 zqiushi 阅读(91) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash . /etc/init.d/functions pidfile="/var/run/rsyncd.pid" start_rsync="rsync --daemon --config=/etc/rsyncd.conf" status1=$(ps -ef | egrep "rsync --daemon.*rsyncd.conf" | grep -v 'grep') func... 阅读全文
posted @ 2019-07-26 14:01 zqiushi 阅读(190) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-07-24 13:41 zqiushi 阅读(5) 评论(0) 推荐(0) 编辑
摘要: https://try.gogs.io gogs 比gitlab轻量 https://www.liaoxuefeng.com/wiki/1016959663602400/1017681679479008 廖雪峰 python https://wechat.python666.cn/cls/lesso 阅读全文
posted @ 2019-07-05 10:19 zqiushi 阅读(109) 评论(0) 推荐(0) 编辑
摘要: docker run --name elk2 -e ES_MIN_MEM=1024m -e ES_MAX_MEM=6248m -p 5601:5601 -p 9200:9200 -p 5044:5044 -p 5046:5046 -d --restart=always -v /var/lib/doc 阅读全文
posted @ 2019-07-04 11:45 zqiushi 阅读(91) 评论(0) 推荐(0) 编辑
摘要: select * from a where b_consume = 0 and (state -1 or state is null) and SOURCE = 221 阅读全文
posted @ 2019-06-25 13:56 zqiushi 阅读(133) 评论(0) 推荐(0) 编辑
摘要: helm https://hub.helm.sh/ k8s https://www.kubernetes.org.cn/k8s istio 微服务 https://istio.io/ 阅读全文
posted @ 2019-06-25 11:52 zqiushi 阅读(211) 评论(0) 推荐(0) 编辑