[英]How can I check the available shells in Mac OSX?
How can I check all the different shells that I can use in OSX Terminal application? 如何检查可在OSX Terminal应用程序中使用的所有不同外壳程序?
The default one is bash, and I know zsh because I tried and it worked. 默认的是bash,我知道zsh,因为我尝试了并且有效。 I wonder how can I check if there are any more than this two.
我想知道如何检查这两个以上的内容。
The easy way is go to /etc
and check the shells
file. 最简单的方法是转到
/etc
并检查shells
文件。 The content is the list of shells available in Mac OSX. 内容是Mac OSX中可用的外壳列表。
The included by default are: 默认情况下包括:
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
Alternatively, you can check their binaries by going to /bin
and recognising them visually. 或者,您可以通过转到
/bin
并直观地识别它们来检查它们的二进制文件。 Naturally, you have to know them in order to recognise them. 自然,您必须了解它们才能识别它们。
In MacOS the following command will list the available shells on your system 在MacOS中,以下命令将列出系统上的可用外壳
$ ls -l /bin/*sh
-r-xr-xr-x 1 root wheel 618448 Nov 19 00:26 /bin/bash
-rwxr-xr-x 1 root wheel 380016 Feb 7 16:11 /bin/csh
-r-xr-xr-x 1 root wheel 1287040 Sep 21 00:35 /bin/ksh
-r-xr-xr-x 1 root wheel 618512 Nov 19 00:26 /bin/sh
-rwxr-xr-x 1 root wheel 380016 Feb 7 16:11 /bin/tcsh
-rwxr-xr-x 1 root wheel 610288 Sep 21 00:35 /bin/zsh
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.