linux 搜索文件夹
- IT科技
- 关注:1.84W次
品牌型号:Thinkpad E15
系统版本:centos7
1、使用find命令,要在Linux中搜索文件夹,我们需要用到-type参数。
例:在系统中搜索ssh文件夹,输入命令:
# find / -type d -iname "ssh"
2、也可以使用locate命令。
例:在系统中搜索ssh文件夹,输入命令:
# locate --basename 'ssh'
总结:
1、使用find命令。
例:在系统中搜索ssh文件夹,输入命令:
# find / -type d -iname "ssh"
2、使用locate命令。
例:在系统中搜索ssh文件夹,输入命令:
# locate --basename 'ssh'
- 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/8nprm7.html