原因为ubuntu 默认为dash
可通过 echo $SHELL 查看
解决:
sudo usermod -s /bin/bash admin
/etc/profile下添加
alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l.='ls -d .* --color=auto' alias ll='ls -l --color=auto' alias ls='ls --color=auto' alias vi='vim' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'