命令行查找文件、目录还是很方便的,常用如下:
精确匹配
1 | ➜ hexo-src git:(master) ✗ find ~/work/respo -name travel_touch |
正则模糊查找文件
1 | ➜ hexo-src git:(master) ✗ find ~/work/respo -name 'travel_t*' -type f |
正则模糊查找目录
1 | ➜ hexo-src git:(master) ✗ find ~/work/respo -name 'travel_t*' -type d |