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.
- Start up Terminal
- Type "cd ~/" to go to your home folder
- Type "vi .bash_profile" to create your new file.
- Add the following line to the file: "alias ll='ls -l'"
- Type ". .bash_profile" to reload .bashrc with any aliases you added