English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux chshコマンドはユーザーのshell設定を変更するために使用されます。
使用権限:全ユーザー。
shell>> chsh
shell>> chsh ユーザーのshellを変更しています1 Password: [del] 新しい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 rootのshellを変更しています。 新しいshell [/bin/bash]: /bin/csh //新しいshellのアドレスを入力してください Shell は変更されました。
通じて -s パラメータは現在のshell設定を変更します
# chsh -s /bin/csh //現在の設定を変更します /bin/csh rootのshellを変更しています。 Shell は変更されていません。