diff --git a/pages/osx/whereis.md b/pages/osx/whereis.md index 55f3998a4..f59c0180a 100644 --- a/pages/osx/whereis.md +++ b/pages/osx/whereis.md @@ -5,3 +5,15 @@ - Locate binary, source and man pages for ssh: `whereis {{ssh}}` + +- Locate binary and man pages for ls: + +`whereis -bm {{ls}}` + +- Locate source of gcc and man pages for git: + +`whereis -s {{gcc}} -m {{git}}` + +- Locate binaries for gcc in /usr/bin/ only: + +`whereis -b -B {{/usr/bin/}} -f {{gcc}}`