Unix 当我通过“查找”只知道目录名时,无法找到目录?

Unix 当我通过“查找”只知道目录名时,无法找到目录?,unix,find,Unix,Find,我正在通过find查找名为macports的目录。 我不知道它在我的电脑里的什么地方 我试过了,但没有成功 find --mindepth 777 macports 如何找到目录?试试看 find . | grep macports 从您可能认为它所在的任何父目录。根据您的系统,您也可以尝试 locate macports 试一试 从您可能认为它所在的任何父目录。根据您的系统,您也可以尝试 locate macports 使用-iname使其不区分大小写。@ojblass:macfind

我正在通过find查找名为macports的目录。 我不知道它在我的电脑里的什么地方

我试过了,但没有成功

find --mindepth 777 macports
如何找到目录?

试试看

find . | grep macports
从您可能认为它所在的任何父目录。根据您的系统,您也可以尝试

locate macports
试一试

从您可能认为它所在的任何父目录。根据您的系统,您也可以尝试

locate macports

使用-iname使其不区分大小写。@ojblass:macfind符号链接指向/some/underse/location/Mac.Find如何?使用-iname使其不区分大小写。@ojblass:macfind符号链接指向/some/underse/location/Mac.Find如何?