{"id":3846,"date":"2019-07-21T23:46:24","date_gmt":"2019-07-21T15:46:24","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3846"},"modified":"2019-07-25T23:02:23","modified_gmt":"2019-07-25T15:02:23","slug":"chsh","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chsh","title":{"rendered":"chsh\u547d\u4ee4 – \u66f4\u6539\u4f7f\u7528\u8005shell\u8bbe\u5b9a"},"content":{"rendered":"\n
chsh\u7528\u4e8e\u66f4\u6539\u767b\u5f55shell\uff1b\u5982\u679c\u547d\u4ee4\u884c\u4e0a\u6ca1\u6709\u7ed9\u5b9ashell\uff0cchsh\u5c06\u63d0\u793a\u8f93\u5165\u4e00\u4e2ashell\u3002<\/p>\n\n\n\n
chsh\u547d\u4ee4\u672c\u8eab\u5e76\u4e0d\u590d\u6742\uff0c\u5b83\u7684\u529f\u80fd\u6bd4\u8f83\u5355\u4e00\uff0c\u5c31\u662f\u8d1f\u8d23\u67e5\u770b\uff08\u663e\u793a\uff09\u548c\u4fee\u6539\u6211\u4eec\u7cfb\u7edf\u7684\u767b\u5f55 Shell\uff1b\u60f3\u4fee\u6539\u767b\u5f55 Shell\uff0c\u9996\u5148\u8981\u77e5\u9053\u6211\u4eec\u7684\u7cfb\u7edf\u5b89\u88c5\u4e86\u54ea\u4e9b Shell\u3002<\/p>\n\n\n\n
chsh\u4ec5\u7528\u4e8e\u66f4\u6539\u672c\u5730\u6761\u76ee\uff1b\u5bf9\u975e\u672c\u5730\u6761\u76ee\u4f7f\u7528ypchsh\u3001lchsh\u6216\u4efb\u4f55\u5176\u4ed6\u5b9e\u73b0\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>chsh [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4f7f\u7528-l\u53c2\u6570 \u6253\u5370\/etc\/shells\u4e2d\u5217\u51fa\u7684shell\uff1a<\/p>\n\n\n\n \u901a\u8fc7 -s \u53c2\u6570\u6539\u53d8\u5f53\u524d\u7684shell\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n chsh\u7528\u4e8e\u66f4\u6539\u767b\u5f55shell\uff1b\u5982\u679c\u547d\u4ee4\u884c\u4e0a\u6ca1\u6709\u7ed9\u5b9ashell\uff0cchsh\u5c06\u63d0\u793a\u8f93\u5165\u4e00\u4e2ashell\u3002 chsh\u547d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3846"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3846"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3846\/revisions"}],"predecessor-version":[{"id":4224,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3846\/revisions\/4224"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l<\/td> \u6253\u5370\/etc\/shells\u4e2d\u5217\u51fa\u7684shell\u5217\u8868\u5e76\u9000\u51fa<\/td><\/tr> -s<\/td> \u6307\u5b9a\u767b\u5f55shell<\/td><\/tr> -u<\/td> \u6253\u5370\u4f7f\u7528\u4fe1\u606f\u5e76\u9000\u51fa<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# chsh -l<\/pre>\n\n\n\n
[root@linuxcool ~]# chsh -s \/bin\/csh<\/pre>\n","protected":false},"excerpt":{"rendered":"