Зробив як книжка пише. Але не працює
В файлі ~/.bashrc в наявності:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Файл ~/.bash_aliases
#Manage packages
alias agi='sudo apt-get install'
alias agr='sudo apt-get remove'
alias agu='sudo apt-get update'
alias acs='apt-cache search'
#Navigating the system
alias documents='cd ~/Documents'
alias downloads='cd ~/Downloads'
alias music='cd ~/Music'
alias videos='cd ~/Media/Відео/'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
#Other useful aliases
alias e='exit'
alias s='sudo'
alias shutdown='sudo shutdown –h now' #requires root password, disable it by "sudo chmod u+s /sbin/shutdown"
alias restart='sudo shutdown –r now' #requires root password, disable it by "sudo chmod u+s /sbin/shutdown"
alias suspend='sudo pm-suspend'
alias lock='gnome-screensaver-command --lock'
alias mounted='mount | column –t