How can I find my shell version using a Linux command?

前端 未结 4 2142
说谎
说谎 2021-02-01 03:42

I would like to know about my shell version using a Linux command. I tried the following command, but it shows the type of the shell I am in.

Command:

ec         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 03:56

    Just use command

    echo $BASH_VERSION

    It must give you the version of shell. BASH_VERSION is the environment variable which contains version of shell.

提交回复
热议问题