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
本文介绍如何检查当前Shell类型,并提供三种方法来更改默认Shell,包括使用dpkg-reconfigure工具、更新符号链接以及直接修改/etc/passwd文件。

4405

被折叠的 条评论
为什么被折叠?



