[Mac] How to Configure ll Command to Execute ls -l Command

Tadashi Shigeoka ·  Sat, February 11, 2012

The ll command is available by default on Redhat Linux, but I often try to use it on Mac where it’s not available and get the error “-bash: ll: command not found.”

I thought writing an alias in bashrc would reduce the trouble of getting errors, so I quickly set it up.

■ Assign ll command to ls -l in .bashrc

$ vim ~/.bashrc

alias ll='ls -l'

■ Reload .bashrc with source command

$ source ~/.bashrc

Now the ll command can be used on Mac as well.

That’s all from the Gemba.