This warning message indicates that using slashes within the '-name' parameter of the 'find' command is inappropriate on Unix systems.

If you intend to locate a file or directory named '/usr/local/x-ui/x-ui', you should utilize the '-wholename' parameter instead. Here's an illustration:

find / -wholename '/usr/local/x-ui/x-ui'

Alternatively, you can employ the '-samefile' parameter if you are searching for a file sharing the same inode as '/usr/local/x-ui/x-ui':

find / -samefile '/usr/local/x-ui/x-ui'

If you are utilizing GNU grep, you can pipe the output of 'find' to 'grep' using the '-print0' option and search for the precise match using '-FzZ':

find / -print0 | grep -FzZ '/usr/local/x-ui/x-ui'

Remember to substitute '/' with the relevant directory if you are searching within a specific location.

Find Command: Using Slashes in -name Parameter and Alternatives

原文地址: http://www.cveoy.top/t/topic/qeIk 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录