欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

更改默认shell

程序员文章站 2022-03-09 15:21:32
...

更改默认shell,需要管理员权限。。。

/user/sbin/usermod -s /bin/tcsh username

 

To change your Cygwin shell, you can alter the /etc/passwd file. Each line is a delimited list of user accounts, where the last entry is the shell for that user. Simply change the line that reads, for example:

abhisek:[some other stuff]:/usr/bin/bash

to:

abhisek:[some other stuff]:/usr/bin/tcsh

转载于:https://www.cnblogs.com/xlmeng1988/archive/2013/03/20/2971594.html