BashのGnuのマニュアルページをご覧ください。

BashのGnuのマニュアルページをご覧ください。

Macには最新のGNU / Bashとgnu coreutilsがインストールされています。

$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin18.0.0)

agプレフィックスでcoreutilsをチェックしてください。

$ gls -l $(which gls)
lrwxr-xr-x 1 me admin 32 Oct 27 12:50 /usr/local/bin/gls -> ../Cellar/coreutils/8.30/bin/gls

時に来るman

$ man gman
No manual entry for gman

エラーが返されます。

$ man man
#works but get BSD manual in year 2003 as return.

coreutilsはGNU fileutils、shellutils、およびtextutilsで構成されているため、マニュアルに解決するソリューションが必要です。

BashでGnuのマニュアルをどのように引用するのですか?

ベストアンサー1

macOS コンピュータで Homebrew と一緒に GNU coreutils をインストールすると、インストールが正常に終了すると、次のメッセージが表示されます。

All commands have been installed with the prefix 'g'.

If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:

    PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

    MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

==> Summary

おすすめ記事