2

Possible Duplicate:
creating abbreviations for commonly used paths

I'm new to the Linux platform. Is there any way to rename the commands available in Linux.

For example, I use the clear command a lot and instead of typing it every time I want to rename it as just c. Is this possible ?

Vins
  • 153
  • 1
  • 1
  • 7
  • 3
    Note that **it's usually better to learn the proper command names** (and relevant parameters) **first.** Otherwise, you will be thoroughly confused when using systems that do not have your customizations. That is a trap a lot of people who get used to having an alias `rm` to `rm -i` fall into, and it can be more or less dangerous depending on the exact commands involved. – user Jan 18 '13 at 09:31

2 Answers2

3

Got it.

alias c="clear"

Now pressing c instead of typing clear clears the screen.

mtk
  • 26,802
  • 35
  • 91
  • 130
Vins
  • 153
  • 1
  • 1
  • 7
3

You can create an alias, as you have figured that out, or just use the key combination Ctrl+L to clear the screen contents.

mtk
  • 26,802
  • 35
  • 91
  • 130