Linux常用命令chsh怎么用
小编给大家分享一下Linux常用命令chsh怎么用,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
Linux常用命令 chsh命令用于更改使用者 shell 设定。
语法
shell>> chsh
实例
shell>> chsh Changing fihanging shell for user1 Password: [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命令,改变shell的设置/bin/csh。
# chsh Changing shell for root. New shell [/bin/bash]: /bin/csh //输入新的shell地址 Shell changed.
通过 -s 参数改变当前的shell设置
# chsh -s /bin/csh //改变当前设置为 /bin/csh Changing shell for root. Shell not changed.
看完了这篇文章,相信你对“Linux常用命令chsh怎么用”有了一定的了解,如果想了解更多相关知识,欢迎关注主机评测网行业资讯频道,感谢各位的阅读!
上一篇:Linux常用命令dpkg-reconfigure怎么用
winlogins.exe是什么文件?winlogins.exe是不是病毒
winsock2.6.exe是什么文件?winsock2.6.exe是不是病毒
WinDefendor.dll是什么文件?WinDefendor.dll是不是病毒
系统目录是什么文件?系统目录是不是病毒
wholove.exe是什么文件?wholove.exe是不是病毒
winn.ini是什么文件?winn.ini是不是病毒
w6oou.dll是什么文件?w6oou.dll是不是病毒
winduxzawb.exe是什么文件?winduxzawb.exe是不是病毒
wuammgr32.exe是什么文件?wuammgr32.exe是不是病毒
windiws.exe是什么文件?windiws.exe是不是病毒