Ready Made Aliases

If you go poking around in the .bashrc file, located in your home folder, you’ll see the following lines:

alias ll=’ls -alF’
alias la=’ls -A’
alias l=’ls -CF’

These provide some ready made aliases for you. Alisases take commonly used commands and provide abbreviations for you so that you don’t have to type the original command in again and again.

For example, if you type:

ll

in a terminal window Ubuntu will treat it as though you had typed:

ls -alF

Typing:

la

is the equivalent of having typed:

ls -A

And typing:

l

is the equivalent of having typed:

ls -CF

To see a description of what the various options for ls do, type:

man ls

You will see a display like this:

Output from man is
Output from man is

Use q to quit from the man session when you wish to return to the command prompt.

Tags : , ,

0 thoughts on “Ready Made Aliases”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.