Making the “ll” Alias for “ls -l” on Your Mac

I recently reinstalled OSx Lion on my MacBook Pro.  One of the first things I always do is add my alias for listing files in Terminal.  I am way too lazy to type "ls -l" and would like to use the "ll" command from my old HP Unix days.  There are a couple of ways to do this by either using a shell command or creating an alias.  The alias is the most proper way and it is very easy to do.

  1. Start up Terminal
  2. Type "cd ~/" to go to your home folder
  3. Type "vi .bash_profile" to create your new file.
  4. Add the following line to the file: "alias ll='ls -l'"
  5. Type ". .bash_profile" to reload .bashrc with any aliases you added

Comments are closed.