But execute one command for one cmd_path is still not good efficient.
If you really need to search a command in path_paths, which is larger than $PATH.
I think execute one find command is more efficient.
```
find .../usr/libexec /usr/local/sbin ... -name cmd -executable
```
Also, I think we can first execute ```which cmd``` directly at first. Because I think in most scenarios we can get the result with which way. If not, then we can use find command to find cmd. In this way, we can save lots of time.

Yang