|
用户可以通过bash命令的--version参数或者环境变量$BASH_VERSION,查看本机的 Bash 版本。
- [root@iZj6c2hyscvpl2m13lk2ekZ ~]# bash --version
- GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
- Copyright (C) 2011 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software; you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- [root@iZj6c2hyscvpl2m13lk2ekZ ~]# echo $BASH_VERSION
- 4.2.46(2)-release
复制代码
|
|