By typing a manually specified command in terminal I want to execute some other command.
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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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.
I write a GUI for adding/editing alias commands. You can also use it from commandline like this:
addalias -add "sinstall" "sudo apt-get install"
You can directly create a file in your home for collecting all the aliases
.bash_profile by writing
nano ~.bash_profile and simply write on the file the commands/shortcuts you want to create, for example:
alias edbp='nano ~/.bash_profile'
and then validate it sourcing the file, so running
Remember that every time you modify your document you have to run again