如何找到我使用的 Fedora 版本?
sudo find /etc | xargs grep -i fedora > searchFedora
给出:
/etc/netplug.d/netplug: # At least on Fedora Core 1
...
但请参阅 /etc/netplug.d/netplug
文件中的 Fedora 版本。 严重吗?
sudo find /etc | xargs grep -i fedora > searchFedora
gives:
/etc/netplug.d/netplug: # At least on Fedora Core 1
...
But see the Fedora version in the /etc/netplug.d/netplug
file. Is it serious?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(14)
或者按照 @Bruce ONeel 的建议
cat /etc/fedora-release
Or
cat /etc/fedora-release
as suggested by @Bruce ONeel您还可以尝试
/etc/redhat-release
或/etc/fedora-release
:You can also try
/etc/redhat-release
or/etc/fedora-release
:建议的标准文件是
/etc/os-release
。 请参阅http://www.freedesktop.org/software/systemd/man/os-release.html你可以执行如下操作:
The proposed standard file is
/etc/os-release
. See http://www.freedesktop.org/software/systemd/man/os-release.htmlYou can execute something like:
最简单的命令可以为您提供所需的信息,但也有一些其他好的信息是:
The simplest command which can give you what you need but some other good info too is:
您可以尝试
至少在 Debian 和 Ubuntu 上运行(并且由于它是 LSB,所以它至少应该在大多数其他主流发行版上运行)。 http://rpmfind.net/linux /RPM/sourceforge/l/ls/lsb/lsb_release-1.0-1.i386.html 表明它已经存在相当长一段时间了。
You could try
which works on at least Debian and Ubuntu (and since it's LSB, it should surely be on most of the other mainstream distros at least). http://rpmfind.net/linux/RPM/sourceforge/l/ls/lsb/lsb_release-1.0-1.i386.html suggests it's been around quite a while.
它几乎适用于所有主要发行版。
It's universal for almost any major distribution.
这些命令适用于 Artik 10 :
,而其他命令则无效:
These commands worked for Artik 10 :
and these others didn't :
uname -a
怎么样?What about
uname -a
?您只需运行此命令即可获取版本号:
输出:
You can simply run this command to get the version number:
output:
在我安装 Fedora 25(工作站)时,在此文件中找到了所有发行版 ID 信息:
其中包括
On my installation of Fedora 25 (workstation) all of the distribution ID info was found in this file:
This included,
uname -a 适用于我的 fc11
uname -a works with my fc11
cat /etc/os-release
适用于 Fedora 和 Silverblue。
cat /etc/os-release
Works both on Fedora and Silverblue.
使用命令,屏幕抓取
输出格式信息。
use commmand , screenfetch
output format info.