一:作用 查找行内符合条件的字符串 二:参数 --color=auto 查找test.py中的w字符 grep --color=auto(参数) "w"(查找规则) test.py(查找源文件) (1)查找包含规则的单词在文件的第几行 -n grep_test.py import random de ...
分类:
其他好文 时间:
2020-05-19 00:56:51
阅读次数:
163
https://www.cnblogs.com/jerry116/p/8969987.html optional "sudo iwlist wlx08beac06c8a9 scan | grep ESSID" "sudo nano /etc/wpa_supplicant/wpa_supplicant ...
分类:
其他好文 时间:
2020-05-18 16:38:32
阅读次数:
63
CPU 1.查看CPU利用率较高的进程 pidstat 1 5 | grep -v $(hostnmae) |grep -v '^$' | sort -k 5 -rn | head 2.查看某个进程的调用关系 perf record -g -p pid Ctrl + C 中断收集 perf repo ...
分类:
系统相关 时间:
2020-05-18 16:19:43
阅读次数:
72
1.查询指令 rpm -qa|grep java 或 rpm -qa|grep jdk 或 rpm -qa|grep gcj 2.卸载jdk指令 rpm -e --nodeps *(表示1显示的jdk名) ...
分类:
系统相关 时间:
2020-05-18 14:43:38
阅读次数:
82
grep 作用 查找文件里符合条件的字符串 若不指定任何文件名称,或是所给予的文件名为 ,则 grep 指令会从标准输入设备读取数据 语法 命令行 参数 范围 r: 递归搜索 匹配规则 a: 不忽略二进制的数据 i: 忽略大小写 E: 正则表达式匹配 w: 只显示完全匹配行 f : 指定规则文件,其 ...
分类:
系统相关 时间:
2020-05-18 14:25:54
阅读次数:
66
https://www.cnblogs.com/alsodzy/p/8527407.html 虽然写起动shell的频率非常不高。。。但是每次要写都要对付一大堆的jar文件路径,新加jar包也必须要修改起动shell。 在网上找到一个挺好的通用shell脚本。 只需要修改一些配置变量,就可以用来做起 ...
分类:
编程语言 时间:
2020-05-18 14:19:26
阅读次数:
57
1.服务器型号 [root@guanbin-k8s-master ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product" Manufacturer: VMware, Inc. Product Name: VMw ...
分类:
系统相关 时间:
2020-05-17 23:10:14
阅读次数:
172
本篇主要讲述: 1 目录和文件 2 目录和文件的操作(复制,删除,移动) 3 查看文件内容的命令 4 搜寻命令(which,whereis,locate,find); 5 文件内容的过滤grep; 1、目录和文件 1.1 查看及切换目录 查看当前目录:pwd(print working direct ...
分类:
系统相关 时间:
2020-05-17 13:38:01
阅读次数:
91
查看日志rsyslogd是否启动和自启动 ps aux | grep rsyslogd 查看自启动(CentOS 7使用,CentOS 6可以使用chkconfig命令) systemctl list-unit-files | grep rsyslog 常见日志及其作用 ...
分类:
系统相关 时间:
2020-05-17 13:35:10
阅读次数:
68