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