红联Linux门户
Linux帮助

关于shell的设置问题

发布时间:2009-02-15 21:45:46来源:红联作者:zc@zc
由于好奇将原ubuntu的默认shell设置为了fish(用的是chsh -s /usr/bin/fish指令)
现在想恢复原始shell,怎样设置?请大家帮忙,谢谢
文章评论

共有 9 条评论

  1. aa65535 于 2009-05-01 08:09:07发表:

    chsh -s /bin/bash

  2. shirley1987 于 2009-04-22 19:59:47发表:

    up

  3. xj8561303 于 2009-02-19 12:44:57发表:

    我输入 chsh -l 提示我无效选项啊!

  4. xj8561303 于 2009-02-19 12:42:27发表:

    不好意思,命令敲错了,呵呵

  5. xj8561303 于 2009-02-19 12:40:42发表:

    我的cash命令都没用啊,大大们怎么回事啊?

  6. cwqing1973 于 2009-02-17 16:29:29发表:

    问题的回答我也和上面二位一样,现在我所能做的是支持一下吧。

  7. deepwhite 于 2009-02-17 09:12:10发表:

    chsh -l
    输出当前系统中的可用的shell,
    然后从上面的输出中选择一个用chsh -s SHELL 来进行设置。
    例如:
    chsh -s /bin/bash

  8. zc@zc 于 2009-02-16 19:03:32发表:

    2# deepwhite

    使用后,出现以下代码...
    fish: Did you mean (COMMAND)? In fish, the '$' character is only used for accessing variables. To learn more about command substitution in fish, type 'help expand-command-substitution'.

  9. deepwhite 于 2009-02-16 10:23:20发表:

    [code]chsh -s $(which bash)[/code] 如果原来的用的是bash

    [code] chsh -s $(which dash)[/code] 如果原来的用的是dash