相关疑难解决方法(0)

如何将fish设置为默认shell?

有没有办法在ubuntu上网本混音中将fish设置为默认shell?我放入了我的 .bashrc 来运行 fish,它工作正常,但是 ubuntu 将它识别为在 bash 中运行的 fish,这意味着当我尝试关闭 shell 时它会警告我一个任务仍在运行。

它不会作为新应用程序弹出,因此我无法像普通应用程序一样将其固定在我的栏中。

command-line fish

140
推荐指数
5
解决办法
17万
查看次数

尝试更改默认 shell 时 /etc/passwd 中不存在用户

我想将我的默认 shell 从 tcsh 更改为 bash。所以我尝试了,这就是发生的事情:

>sudo chsh userid
Changing the login shell for userid
Enter the new value, or press ENTER for the default
        Login Shell [/xhbin/tcsh]: /bin/bash
chsh: user 'userid' does not exist in /etc/passwd
Run Code Online (Sandbox Code Playgroud)

确实,我不在 /etc/passwd 中。我不知道为什么。

我能做什么?

passwd chsh

44
推荐指数
5
解决办法
8万
查看次数

标签 统计

chsh ×1

command-line ×1

fish ×1

passwd ×1