Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Today I just accidentally realized that write l will do same like ls except trailing slash for directory.

Im failed to find any detailed of this command.

share|improve this question

migrated from Mar 19 '11 at 15:07

This question came from our site for professional and enthusiast programmers.

l is not a command on its own, it calls ls with some custom command-line arguments. What these are, and if l is defined at all depends on your distribution.

Thus, which will not help you. See your .bashrc for a definition or type alias l.

share|improve this answer

If you do not know where a command is located at, use the shell builtin type:

type l

This would give something like:

l is aliased to `ls -CF'

If you're using bash as shell, these aliases are often defined in the ~/.bashrc file.

For more information about this shell builtin, run help type.

share|improve this answer

It is probably an alias

share|improve this answer

Try which l. This is probably a shell alias set up in a shell configuration file.

share|improve this answer

You must log in to answer this question.