find命令查找目录

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
posted @ 2017-05-29 18:45  2021年的顺遂平安君  阅读(74)  评论(0)    收藏  举报