ubuntu普通用户 提示符只有$, 不能使用tab,常用alias无

Posted 旧楚布衣

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于ubuntu普通用户 提示符只有$, 不能使用tab,常用alias无的主要内容,如果未能解决你的问题,请参考以下文章