2

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)

1
  • 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, 2014 at 18:11

2 Answers 2

4

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

alias l='ls -CF'
1
  • oh shoot you're right, it was in my .bashrc and I missed it. Thanks!
    – funk-shun
    Apr 19, 2011 at 5:41
4

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/

3
  • i actually couldn't find a .bashrc in /etc/ - it was actually in /root/
    – funk-shun
    Apr 19, 2011 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, 2011 at 11:18
  • oh yeah, bash.bashrc on mine (ubuntu 10.10) too - good call
    – funk-shun
    Apr 21, 2011 at 6:51

You must log in to answer this question.

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