find命令查找目录

来源:互联网 发布:js移除最后一个子元素 编辑:程序博客网 时间:2024/05/16 09:43

find <path> -type d -name "dir_name"

-type d是查找目录的参数,如果是查找其他的:

  • -type b: Block special device file
  • -type c: Character special device file
  • -type f: Regular file
  • -type l: Symbol link