在linux改变默认的shell [英] changing default shell in linux

查看:118
本文介绍了在linux改变默认的shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何可以改变默认的shell?目前, ENV 命令说:

How it is possible to change the default shell? Currently env command says

SHELL=/bin/tcsh

和我想改变这种状况来砸

and I want to change that to bash

推荐答案

尝试Linux命令 CHSH

详细的命令是 CHSH -s /斌/庆典
它会提示你输入密码。
您的默认登录shell是 /斌/庆典现在。 您必须注销并重新登录看到这种变化。

The detailed command is chsh -s /bin/bash. It will prompt you to enter your password. Your default login shell is /bin/bash now. You must log out and log back in to see this change.

以下是从手册页引用:

chsh命令更改用户登录shell。这就决定了
  名称
         的用户首次登录命令。普通用户只能改变
         登录shell为她自己的说法,超级用户可以更改登录
         外壳的任何帐户

The chsh command changes the user login shell. This determines the name of the users initial login command. A normal user may only change the login shell for her own account, the superuser may change the login shell for any account

此命令将永久更改默认的登录shell。

This command will change the default login shell permanently.

这篇关于在linux改变默认的shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆