
Linux chsh命令
Linux 中的 chsh 命令用于变更用户的登录 shell 设置。
适用权限:所有用户均可使用。
命令格式
shell>> chsh
使用示例
shell>> chshChanging fihanging shell for user1Password: [del]New shell [/bin/tcsh]: ### [当前正在使用的 shell][del]shell>> chsh -l ### 显示 /etc/shells 文件内容/bin/bash/bin/sh/bin/ash/bin/bsh/bin/tcsh/bin/csh
修改当前 shell。假设当前 shell 为 /bin/bash,使用 chsh 命令将其更改为 /bin/csh。
图改改
在线修改图片文字
455 查看详情
# chshChanging shell for root.New shell [/bin/bash]: /bin/csh //输入新的 shell 路径Shell changed.
使用 -s 参数来设置新的登录 shell
# chsh -s /bin/csh //将当前 shell 设置为 /bin/cshChanging shell for root.Shell not changed.
以上就是linux更改登录shell是什么-chsh命令使用与实例的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/436012.html
微信扫一扫
支付宝扫一扫