리눅스 bash 버전 확인

(Bash 버전 확인에서 넘어옴)
bash 버전 확인
sh 버전 확인

1 방법 1: bash[편집]

[root@zetawiki ~]# bash --version
GNU bash, version 4.2.45(1)-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.

2 방법 2: rpm[편집]

[root@zetawiki ~]# rpm -qa bash
bash-4.2.45-5.el7_0.4.x86_64

3 방법 3: yum[편집]

[root@zetawiki ~]# yum list installed bash
... (생략)
Installed Packages
bash.x86_64                            4.2.45-5.el7_0.4                            @update

4 방법 4: $BASH_VERSION[편집]

[root@zetawiki ~]# echo $BASH_VERSION
4.2.45(1)-release

5 방법 5: $BASH_VERSINFO[편집]

[root@zetawiki ~]# echo ${BASH_VERSINFO[@]}
4 2 45 1 release x86_64-redhat-linux-gnu

6 같이 보기[편집]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}