I use aliases and have done the following:
1. modified .bashrc to look for the file .bash_aliases
the following lines were uncommented from the original .bashrc script
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
2. then I created the file .bash_aliases in my home directory.
3. added several aliases such as
alias wkend='cd $HOME/weekend'
alias cpu='sudo cpufreq-selector -g performance'
alias exch='cd $HOME/data/ID/mon/exch'
PROBLEMS:
1. when attempting to use the alias 'cpu' from the command line, I get the following message:
nh@nh>cpu <enter>
'You must be root'
How can I use alias to execute the shortcut 'cpu'?
2. when I change the 'exch' alias from the version cited above to the following:
alias exch='cd ~/data/ID/mon'
and save the change, why doesn't the revised alias work? In my case, changes to the .bash_aliases file don't seem to refresh.
Is there a command that refreshes the .bashrc?
Is there a command that refreshes alias?
PS - On my system, there is no 'man alias'
1. modified .bashrc to look for the file .bash_aliases
the following lines were uncommented from the original .bashrc script
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
2. then I created the file .bash_aliases in my home directory.
3. added several aliases such as
alias wkend='cd $HOME/weekend'
alias cpu='sudo cpufreq-selector -g performance'
alias exch='cd $HOME/data/ID/mon/exch'
PROBLEMS:
1. when attempting to use the alias 'cpu' from the command line, I get the following message:
nh@nh>cpu <enter>
'You must be root'
How can I use alias to execute the shortcut 'cpu'?
2. when I change the 'exch' alias from the version cited above to the following:
alias exch='cd ~/data/ID/mon'
and save the change, why doesn't the revised alias work? In my case, changes to the .bash_aliases file don't seem to refresh.
Is there a command that refreshes the .bashrc?
Is there a command that refreshes alias?
PS - On my system, there is no 'man alias'
Comment