- bash 버전 확인
- sh 버전 확인
1 방법 1: bash[ | ]
Console
Copy
[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[ | ]
Console
Copy
[root@zetawiki ~]# rpm -qa bash
bash-4.2.45-5.el7_0.4.x86_64
3 방법 3: yum[ | ]
Console
Copy
[root@zetawiki ~]# yum list installed bash
... (생략)
Installed Packages
bash.x86_64 4.2.45-5.el7_0.4 @update
4 방법 4: $BASH_VERSION[ | ]
Console
Copy
[root@zetawiki ~]# echo $BASH_VERSION
4.2.45(1)-release
Bash
CPU
0.0s
MEM
3M
0.0s
Copy
echo $BASH_VERSION
5.0.3(1)-release
5 방법 5: $BASH_VERSINFO[ | ]
Console
Copy
[root@zetawiki ~]# echo ${BASH_VERSINFO[@]}
4 2 45 1 release x86_64-redhat-linux-gnu
Bash
CPU
0.0s
MEM
3M
0.0s
Copy
echo ${BASH_VERSINFO[@]}
5 0 3 1 release x86_64-pc-linux-gnu
6 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
로또번호 생성 ―Pinkcrimson
리눅스 날짜 기준으로 파일 삭제하기 ― 백승현리눅스 날짜 기준으로 파일 삭제하기 ― Jmnote