如何使用Linux命令找到我的Shell版本? [英] How can I find my shell version using a Linux command?

查看:101
本文介绍了如何使用Linux命令找到我的Shell版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Linux命令了解我的Shell版本.我尝试了以下命令,但它显示了我所在的外壳的类型.

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.

命令:

echo $SHELL

结果:

/bin/bash

推荐答案

这可以做到:

$SHELL --version

在我的情况下,输出为:

In my case, the output is:

zsh 5.0.2 (x86_64-pc-linux-gnu)

这篇关于如何使用Linux命令找到我的Shell版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆