By typing a manually specified command in terminal i want to do some.
How could add an alias to a command? Can i do that with the help of the terminal or should i edit some kind of file?
|
By typing a manually specified command in terminal i want to do some. How could add an alias to a command? Can i do that with the help of the terminal or should i edit some kind of file? |
|||||
|
For creating a permanent alias you've to edit the More info here More .bashrc files here |
||||
|
On the bash command line it is simply a case of typing: alias my_command="Command to run" for example to create a short command run a long listing you could do: alias ll="ls -l" The quotes are not required if you are not adding switches to the aliased command. |
|||
|
|
|
You can either use the |
|||
|
|
|
To learn about aliasing: visit http://www.mediacollege.com/linux/command/alias.html To make the changes permanent (i.e. to be read everytime you start a shell) add the alias commands you typed in the terminal to the file ~/.bashrc file. |
|||
|
|
|
To make permanent changes in (in ubuntu at least, not sure for other distros) you can put your aliases separetely in ~/.bash_aliases |
|||
|
|