红联Linux门户
Linux帮助

ubuntu由于使用了/bin/sh导致找不到pushd命令

发布时间:2016-03-10 14:57:40来源:linux网站作者:yihui8

切换回/bin/bash即可,但是我在shell中声明#!/bin/bash还是继续报错。


看到一句解释如下:

This has to do with /bin/sh being linked to /bin/dash instead of /bin/bash in ubuntu’s latest releases. To fix it once and for all do the following:


使用下面的方法,让ubuntu默认用/bin/bash:

# rm -f /bin/sh

# ln -s /bin/bash /bin/sh


本文永久更新地址:http://www.linuxdiyf.com/linux/18783.html