最近没有更新博客,遇到国庆终于有时间学习并更新博客了~ 记录一下自己的学习 Linux一直是我的弱项,由于现在的工作需要用到Linux,决定恶补一下。 查找文件地址 find /home/ -name "test*" -type f # type 查找文件类型 -type d 为文件夹, -type ...
分类:
系统相关 时间:
2020-10-08 18:09:20
阅读次数:
25
1、Mysql 官网下载 RPM 包wget https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm2、检查是否已安装(强力卸载)for i in $(rpm -qa|grep mysql);do rpm -e $i ...
分类:
数据库 时间:
2020-10-06 21:00:49
阅读次数:
52
概念:grep:文本过滤(模式:pattern)工具grep,egrep,fgrep(不支持正则表达式搜索)sed:streameditor,文本编辑工具awk:文本报告生成器grep:默认是过滤行和cut相反作用:文本搜索工具,根据用户指定的”模式“对目标文本逐行进行匹配检查;打印匹配到的行!!模式:有正则表达式字符及文本字符所编写的过滤条件grep[OPTIONS]PATTERN[FILE..
分类:
系统相关 时间:
2020-10-06 20:54:20
阅读次数:
38
1.判断是否存在 判断文件夹是否存在 if [ -d "/data/" ];then echo "文件夹存在" else echo "文件夹不存在" fi 判断文件是否存在 if [ -f "/data/filename" ];then echo "文件存在" else echo "文件不存在" f ...
分类:
系统相关 时间:
2020-09-24 22:15:17
阅读次数:
100
https://leetcode-cn.com/problems/find-mode-in-binary-search-tree/ class Solution { public: int count = 0, max_count = 0; TreeNode* pre = NULL; vector< ...
分类:
其他好文 时间:
2020-09-24 22:11:03
阅读次数:
80
java排除线上问题套路 线上问题有以下四种:cpu、gc、内存、网络 排除cpu问题套路 (1)ps -ef|grep '进程名字' (2)top -H -p 进程号 获取占用cpu较大的线程 (3)线程号转换为16进制 printf '%x\n' 线程号 (4)jstack '进程号'|grep ...
分类:
编程语言 时间:
2020-09-24 21:57:47
阅读次数:
52
grep -R -w -l 'boot' /etc 只显示文件名不显示内容 -R 递归? root@ubuntu:/home/www/apollo/static/js# grep -R -w -l 'Oracle执行统计' ././189.4cc96b6d078107d8613e.js./70.8e ...
分类:
其他好文 时间:
2020-09-24 21:41:08
阅读次数:
42
参考:https://zhuanlan.zhihu.com/p/84346003(OK) getsebool -a | grep samba 然后发现输入的内容中有这两行 samba_enable_home_dirs --> off samba_export_all_rw --> off 终端继续输 ...
分类:
系统相关 时间:
2020-09-23 23:41:44
阅读次数:
62