ubuntu普通用户 提示符只有$, 不能使用tab,常用alias无
原因为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'
posted on 2020-01-16 11:44  旧楚布衣  阅读(343)  评论(0编辑  收藏  举报