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.

My Ubuntu allows the use of l as a command to print out the current directory much like ls except that it is actually better in that it specifies which are folders, files, and executables.

Is this an existing command or did I configure my system (like la for ls -a and ll for ls -l) and forget about it? (it's not in my .bashrc)

share|improve this question
    
I can't connect to my linux machine right now, but I think type or which will tell you if it's an alias, and what it's an alias for. –  Rob Feb 24 at 18:11
add comment

2 Answers

My .bashrc has the following alias, included by default in Debian-based distributions (and probably others):

alias l='ls -CF'
share|improve this answer
    
oh shoot you're right, it was in my .bashrc and I missed it. Thanks! –  funk-shun Apr 19 '11 at 5:41
add comment

Typically these are shortcuts that are implemented as aliases. Type alias at your prompt and you'll see a list of all of your aliases. If you don't have it explicitly defined in your .bashrc, it maybe in a system-wide bashrc in /etc/

share|improve this answer
    
i actually couldn't find a .bashrc in /etc/ - it was actually in /root/ –  funk-shun Apr 19 '11 at 5:42
1  
It most likely won't be called .bashrc in etc, but the name is system dependent. For example on my machine I have /etc/bash.bashrc for my system-wide settings. –  heavyd Apr 19 '11 at 11:18
    
oh yeah, bash.bashrc on mine (ubuntu 10.10) too - good call –  funk-shun Apr 21 '11 at 6:51
add comment

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.