commande chsh Linux
commande chsh Linux modifie les paramètres de shell utilisateur.
Accès: Tous les utilisateurs.
grammaire
shell>> chsh
Exemples
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
Changer le shell courant. Le shell courant réglé // bin / bash, par commande chsh pour changer les paramètres du shell / bin / csh.
# chsh Changing shell for root. New shell [/bin/bash]: /bin/csh //输入新的shell地址 Shell changed.
Changer le shell courant défini par le paramètre -s
# chsh -s /bin/csh //改变当前设置为 /bin/csh Changing shell for root. Shell not changed.