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

前端 未结 4 2124
说谎
说谎 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条回答
  •  北恋
    北恋 (楼主)
    2021-02-01 04:11

    This will do it:

    $SHELL --version
    

    In my case, the output is:

    zsh 5.0.2 (x86_64-pc-linux-gnu)
    

提交回复
热议问题