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-06-04 14:54  2021年的顺遂平安君  阅读(1025)  评论(0编辑  收藏  举报