리눅스 bash 버전 확인

Jmnote (토론 | 기여)님의 2018년 1월 11일 (목) 21:18 판
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 }}