Linux
王召宇
这个作者很懒,什么都没留下…
展开
-
Linux里如何查找文件内容
Linux查找文件内容的常用命令方法。 从文件内容查找匹配指定字符串的行:$ grep "被查找的字符串" 文件名例子:在当前目录里第一级文件夹中寻找包含指定字符串的.in文件grep "thermcontact" */*.in从文件内容查找与正则表达式匹配的行:$ grep –e “正则表达式” 文件名查找时不区分大小写:$ grep –i "被转载 2017-06-14 10:58:46 · 518 阅读 · 0 评论 -
Linux 使用su - root切换到root提示su: Authentication failure
$ su - rootPassword: su: Authentication failureSorry.这时候输入$ sudo passwd rootEnter new UNIX password: Retype new UNIX password: passwd: password updated successfully这时候就可以进入根目录了转载 2017-07-07 16:06:44 · 882 阅读 · 0 评论