Seit Hamburg

Alias en shell

A shell is a software that provides an interface to the user. There could be two kinds of shells, text or graphical. In either category, the purpose of the shell is to lauch a program.

We can create alias inside a shell to invoke those programs in a more efficient way.

To do that, we just edit the file .bashrc. For example, if we want to create an alias in ubuntu to update the system, we add the following line:

#Alias for updating the system

alias update = “sudo apt-get update”

To override all possible aliases, we just write a backslash and the command will be run as-is.

\ls

Junio 1, 2009 Publicado por backdoormann | linux | | Aún no hay comentarios