目次

coreutils - GNU Core Utilities

coreutils のインストール

GNU版基本コマンドパッケージをインストールする。

$ sudo port -v install coreutils

Red Hat 風に ls コマンドの alias を設定

coreutils のコマンド群は Mac OS X のコマンド群と共存するために「g」から始まる名前でインストールされる。

alias l.='gls -d .* --color=auto'
alias ll='gls -l --color=auto'
alias ls='gls --color=auto'

alias を有効にする。

$ source ~/.bashrc

参考文献

Mint's log: Macportsのcoreutilsコマンド群はなんでも「g」から始まる
ITmedia エンタープライズ : Linux Tips「ls実行時に表示される配色を変更したい」