grep是一个很常用命令。 grep [-A] [-B] [--color=auto] '要搜索到字符串' filename 如果要高亮可以在~/,bashrc中设置 alias grep='grep --color=auto'