
Linux
群山回唱
这个作者很懒,什么都没留下…
展开
-
yum命令报错You have enabled checking of packages via GPG keys.
You have enabled checking of packages via GPG keys. This is a good thing. However, you do not have any GPG public keys installed. You need to downloadthe keys for packages you wish to install and install them.You can do that by running the command:原创 2024-01-16 13:20:20 · 828 阅读 · 1 评论 -
Linux按时间截取日志命令
最近遇到一个问题,要导出一个系统的日志,但是日志文件实在是太大了,导出知道在本地根本无法打开,所以想到通过命令来把需要的时间段的日志截取后再导出。sed -n '/开始时间/,/结束时间/' 被截取日志原文件名称>截取后存储日志文件名称-------这种时间精确度到时分秒sed -n '/2018-06-22|10:23:44/,/2018-06-22|11:23:44/' oa.log&g...原创 2018-06-22 11:56:59 · 15574 阅读 · 2 评论