Results 1 to 4 of 4
Hey guys,
This may seem like a stupid request but I was wondering how do you rename a command? I want "cls" to do the same thing instead of, or ...
- 11-09-2011 #1
Rename Commands in Bash
Hey guys,
This may seem like a stupid request but I was wondering how do you rename a command? I want "cls" to do the same thing instead of, or in addition to the "clear" command.
Working with the Windows shell during work hours has cemmented that as the clear command and it is irratating me to bits. I remember reading that this was possible via an environmental variable if I recall correctly but my Google searches are just bringing up how to rename files in Linux :P
Thanks for the help guys!
- 11-09-2011 #2
hi
You can create an alias ( alias cls='clear' ) and insert it into your ~/.bashrc
After sourcing that (or relogin), cls will be available.
Code:man bash
You must always face the curtain with a bow.
- 11-09-2011 #3
Thanks, exactly what I was after. Alias was the word I was looking for! Thanks again for the help!
- 11-09-2011 #4
Also:
<ctrl> + l
an L
This is such a common thing that you might as well memorise the above.


Reply With Quote