Score:1

defining an alias is not recognized in other terminals

us flag

I was playing around with the command "alias" and I noticed that when I define an alias for copy to be c ( alias c="copy" ) it only work on that terminal, if I switch to another one, the command "c" won't be recognized as "copy" anymore.

giray avatar
cn flag
This may help https://askubuntu.com/questions/18787/how-can-i-create-an-alias-so-that-when-i-enter-kt-it-executes-killall-gnome-t
Score:0
it flag

alias is a bash builtin that changes the environment of your current shell, but it only changes in terminals created after the command was issued. To get the change to be recognized by others, run the following command:

source ~/.bashrc

also, it must be a bash terminal.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.