![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
敏敏1020
这个作者很懒,什么都没留下…
展开
-
centos安装mysql报错another app is currently holding the yum lock
报错如下:解决方法:sudo rm -f /var/run/yum.pid 13830原创 2021-12-11 19:55:48 · 486 阅读 · 0 评论 -
远程连接Centos Linux系统的mysql
远程连接mysql原创 2021-12-11 23:49:14 · 317 阅读 · 0 评论 -
shell编程
shell编程原创 2021-12-29 10:25:43 · 197 阅读 · 0 评论 -
Linux常用命令-Linux三剑客/curl/jq
性能 top持续监视系统性能 ps -aux grep 定义:根据用户指定的模式(pattern)对目标文本进行过滤,显示被模式匹配到的行 格式:grep [OPTIONS] PATTERN [FILE] 选项 -v 显示不被pattern匹配到的行 -i 忽略字符大小写 -n 显示匹配的行号 -c 统计匹配的行数 -o 仅显示匹配到的字符串 -E使用ERE,相当于egrep 使用 grep ^s test.txt 匹配s开头的行原创 2021-12-27 22:47:01 · 343 阅读 · 0 评论 -
Linux常用命令-文件/网络性能
文件 cd ~ 进入用户目录下 ls mkdir tmp 创建目录 cd tmp mv test.txt ~/tmp 移动文件 rm -rf test.txt rmdir tmp 文件属性 ll drwxr-xr-x 文件类型d rwx拥有者 r-x所属组 r-x其他人 修改文件属性 r读权限 read 4 w写权限write2 x操作权限execute1 chmod 755 test 修改test文件属性 查看和修改文件属性原创 2021-12-27 21:37:37 · 330 阅读 · 0 评论 -
shell/Linux读取文件数据并赋值给变量
文件为res.txt 命令 ids=$(cat res.txt | jq .data.list[].id)echo ${ids} #!/bin/bashfor line in `cat res.txt`do echo $linedone原创 2021-09-21 21:31:28 · 7592 阅读 · 0 评论 -
Shell/Linux使用Jq操作Json
Mac安装Jq Jq用来提取Json数据 brew install jq 使用方法 格式 参数 示例 **filter:**. : 默认输出.foo: 输出指定属性,foo代表属性。.[foo] :输出指定数组元素。foo代表数组下标。.[]:输出指定数组中全部元素, :指定多个属性作为过滤条件时,用逗号分隔| : 将指定的数组元素中的某个属性作为过滤条件 ...原创 2021-09-21 20:53:24 · 421 阅读 · 0 评论 -
Linux常用命令
Linux常用命令原创 2020-05-10 18:21:07 · 115 阅读 · 0 评论