- 博客(5)
- 问答 (1)
- 收藏
- 关注
原创 Linux常用命令
文章目录1、设置Linux命令的别名2、shell脚本2.1创建脚本2.2使用:3、Grep命令使用3.1 参数使用4、Linux下Tab键忽略大小写5、Linux中tar操作6、find7、mkdir8、du9、shell脚本后台运行的方法10、键盘操作指令11、netstat命令1、介绍2、netstat常见参数3、常用命令1、设置Linux命令的别名alias [expected command]=[real command]eg : alias cls=clear2、shell脚本2.
2020-11-23 17:46:48
268
原创 Linux在指定类似文件名中查询字段
find命令与grep命令结合使用问题描述:在某些文件名类似的文件中查询某一个字段的快速方法一般方式:grep -irn 'hello world!' /dir # 效率低下,耗时长!与find命令的结合使用:find /dir -name 'hello.txt'|xargs grep -irn 'hello world!'点击此处直达xargs命令说明。...
2020-11-23 17:45:22
334
原创 Linux精准查询日志
前言程序写完了?拉出来溜溜!实时查看日志tail -f <filename>日志多,精准查询 tail -f runtime_20201111.log | grep --line-buffer '需要的日志内容'看一个不够?多来几个!这里是<且> andtail -f runtime_20201111.log | grep --line-buffer "发送失败" | grep --line-buffer "网络堵塞"这里是<或> or
2020-11-23 17:44:42
374
2
原创 Linux下搜索指定文件归档
Linux下搜索指定文件归档1、find搜索文件,重定向结果到文件中find /path -name '*.log' > ~/tmp.list2、tar 命令批量处理tar -T ~/tmp.list -czvf log.tar.gz压缩包的内容是带有相对应文件夹的,如何解决?find ./log -name '*.log'|xargs -i cp {} ./dir/...
2020-11-23 17:44:02
193
1
转载 SpringBoot2.1.8 + Thymeleaf + WebSocket即时通讯聊天Demo
本文参考:https://blog.youkuaiyun.com/moshowgame/article/details/83024867预览相关依赖 <dependency> <groupId>org.springframework.boot</groupId> <artif...
2019-09-29 17:26:49
739
空空如也
C语言链表插入操作,一个函数
2017-09-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人