perintah chsh Linux
Linux perintah chsh mengubah pengaturan shell pengguna.
Akses: Semua pengguna.
tatabahasa
shell>> chsh
contoh
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
Mengubah shell saat ini. Shell saat mengatur // bin / bash, dengan perintah chsh untuk mengubah pengaturan shell / bin / csh.
# chsh Changing shell for root. New shell [/bin/bash]: /bin/csh //输入新的shell地址 Shell changed.
Mengubah shell saat ini ditetapkan oleh parameter -s
# chsh -s /bin/csh //改变当前设置为 /bin/csh Changing shell for root. Shell not changed.