ubuntu中source ~/.bash_profile时提示 source: not found
ls -l `which sh` 提示/bin/sh -> dash
这说明是用dash来进行解析的。
修改方法:
使用root账户执行以下命令:
dpkg-reconfigure dash
执行过程中的选项选择no
Use dash as the default system shell (/bin/sh)? [yes/no] no
再次执行命令
ls -l `which sh` 提示/bin/sh -> bash