Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.