1、快速搜索在目錄下面的含有關鍵字的文件
我們采用下面命令
cd directories
grep -r 關鍵字
2、搜索結果
[root@mq-1 ]# grep -r sshkey configs/kubernetes.groovy:def secretVolume = new SecretVolume('/root/.ssh', 'sshkey', '384') templates/deploy_deployment.yaml: - name: host-sshkey templates/deploy_deployment.yaml: - name: host-sshkey