Mac OS Terminal Shortcut for “ls -lGaf”

Macbook Pro Pexels

On Ubuntu, I've always used "ll" to quickly get a list of folders/files from a directory.  This quick shortcut isn't built into iTerm for Mac.  Add the following to your ~/.bash_profile

alias ll='ls -lGaf'

What does this do?

  • List folders & files.
  • List hidden files.
  • Sorts the output and disregard case-sensitivity.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: