centos根据文件内容进行全局搜索,全文搜索 grep -rnw ‘/path’ -e ‘pattern’ 递归 行号 精确 ‘路径’ 内容 例子: grep -rnw ‘/usr’ -e ‘告警方式配置’