简体   繁体   中英

How do I display the shells used on my Unix machine?

是否可以使用Unix命令显示Mac上存在的所有shell?

Usually you would do:

cat /etc/shells

To see what is considered an "approved" shell on your system.

Then verify that the files listed in /etc/shells are actually present (eg ls /bin/bash ).

If they are, you can use the chsh command to change your shell to one of the listed shells.

There isn't any specific command I'm aware of to list installed shells, but the process I just described should get you there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM