Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

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 ?

share|improve this question

marked as duplicate by jasonwryan, manatwork, Renan, Shadur, uther Jan 18 '13 at 14:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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. – Michael Kjörling Jan 18 '13 at 9:31
@MichaelKjörling Thanks for your input – Vins Jan 18 '13 at 10:33
up vote 3 down vote accepted

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

share|improve this answer

Got it.

alias c="clear"

Now pressing c instead of typing clear clears the screen.

share|improve this answer
Ctrl-l works as well... – jasonwryan Jan 18 '13 at 7:22
Don't forget to add this line to your .bash_profile (or .bashrc if the former is quite empty, depends on your distribution) to still have the setting after your next login – Tobias Kienzler Jan 18 '13 at 7:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.