grep 小技巧

1. 在nginx,conf文件中搜索,包含"header"的关键字

cat nginx.conf| grep 'header'

2.在上一级目录搜索,包含"httpserver"关键字的位置

grep 'httpserver' -r ../

赞赏码

非学,无以致疑;非问,无以广识

原文地址:https://www.cnblogs.com/lxwphp/p/15452785.html