![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux日常学习
qianqian0223
这个作者很懒,什么都没留下…
展开
-
5.22 日志 linux 正则表达式相关
1、grep 命令 grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。[root@www ~]# grep [-acinv] [--color=auto] '查找字符串' filename 参数...原创 2018-05-22 20:54:05 · 399 阅读 · 0 评论 -
5.23 日志 linux 磁盘与文件系统管理
1、dumpe2fs 查询文件系统状态dumpe2fs [-bh] 设备文件名参数 -b :列出保留为坏道的部分 -h :仅列出superblock 的数据,不会列出其他的区段内容dumpe2fs /dev/hdc2 ls -li 查看root 目录内的文件 所占用的inode 号码ll -di / /etc /etc/passwdcat /proc/filesystems...原创 2018-05-23 20:22:10 · 154 阅读 · 0 评论