1、别名
siyuroom@victor-VirtualBox:~$pwd
/home/siyuroom
siyuroom@victor-VirtualBox:~$www
siyuroom@victor-VirtualBox:/var/www$pwd
/var/www
siyuroom@victor-VirtualBox:~$home
/home/siyuroom
实现别名
vim ~/.bashrc
找到alias这行添加
alias www='cd /var/www/'
alias home='cd /home/siyuroom'
实现环境变量
vim ~/.bashrc
最后一行添加
PATH=$PATH:/home/siyuroom
source ~/.bashrc