在 FreeBSD 中,默认的 shell 是 /bin/tcsh
,也称为 Tenex C Shell。tcsh 是 C Shell(csh)的改进版本,提供了许多额外的特性,如命令行编辑、历史记录、自动补全等,使其更易于使用和配置。
要查看当前用户的默认 shell,可以通过运行以下命令来查看 /etc/passwd
文件中的用户账户信息:
grep username /etc/passwd
其中 username
是你要查询的用户名。在返回的结果中,你会看到该用户的默认 shell 列表中指定了使用的 shell。可以使用 chsh
命令来更改用户的默认 shell。