Zhaoke, 2007-07-30
你可以通过执行echo $0获得当前使用的Shell程序, 比如bash, zsh或者sh:
$ echo $0 bash
如果你正在同时使用多个不同的shell程序, 该技巧将会很有帮助.
图片:
备注 转载请保持文章完整性.
cx | 2007-08-09 20:08 | Permanent Link
最好用csh试一下,你的方法是不行的
zhaoke | 2007-08-10 6:32 | Permanent Link
csh可以用echo $SHELL
Your email address will not be published.
Attention: * please fill out this form completely and i will contact you later, dont repeat, thanks!
cx | 2007-08-09 20:08 | Permanent Link
最好用csh试一下,你的方法是不行的
zhaoke | 2007-08-10 6:32 | Permanent Link
csh可以用echo $SHELL