Change the default shell for Ubuntu

来源:互联网 发布:控制面板找不到mysql 编辑:程序博客网 时间:2024/05/22 08:09

First of all, using this command to check what's the shell type right now:

$ls -al /bin/sh

There will be the symbol link of sh to bash or dash.

 

There are ways to change it:

1. using this command, and select NO when in the pop-up window.

$sudo dpkg-reconfigure dash

2. just update the symbol link to bash:

$sudo ln -sf /bin/bash /bin/sh

3. change the line of file : /etc/passwd, while line contains the "user" of yours.

 sqwu:x:1000:1000:EDA,,,:/home/sqwu:/bin/bash



原创粉丝点击