Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using "ls -l" a lot is there a way say define a shortcut for that so i could call it "ll"? This way I can go and use short instead? Any pointers appreciated. Thanks. Michael

share|improve this question
    
Many distributions already have ll set as an alias in the way pointed out by user221185. –  FSMaxB May 1 '13 at 18:48

2 Answers 2

There are at least three ways:

  1. echo 'alias ll="ls -l"' >> ~/.bash_proflie
  2. echo 'function ll { ls -l $@ ;}' >> ~/.bash_profile
  3. echo ls -l > /usr/local/bin/ll ; chmod +x /usr/local/bin/ll

Don't forget to read the profile with source ~/.bash_profile.

share|improve this answer
    
Thanks for the help I appreciate it. –  user221182 May 2 '13 at 22:11

You can make an alias of "ls -l" like this: alias ll="ls -l"

To make it permanent, you can add the above alias to the file ~/.bash_profile

share|improve this answer

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.