1

I want to have ll as a shortcut for ls -ll. How can I add it to my Termianl application? I use iTerm as my primary Terminal application. I wish there was a single line command solution for it.

3

Add it to your .bash_profile by running nano ~/.bash_profile and adding

alias ll='ls -ll'

Control + X, then Y, then Enter to save the file.

Restart Terminal. ll should now be an alias for ls -ll. Use it like you would any other commands.

| improve this answer | |
  • Thanks, this worked. In both native terminal app and iTerm. I was confused with all bashrc file locations. – Mohsen May 10 '12 at 21:37
  • @Mohsen Ah. That would do it. :-) – daviesgeek May 10 '12 at 21:38
  • No need to restart the terminal, you can execute the same command on the shell alias ll='ls -ll' or source you .bash_profile again by source ~/.bash_profile. – Matteo May 14 '12 at 6:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .