查看linux版本

如果你只是想查看linux的内核版本,可以使用

uname -a

但是如果你想知道是哪种版本,uname就无能为力了。需要用到下面的方法:

Some distros put a ‘*-release’ or ‘*-version’ file

in /etc. Here are some examples:

/etc/redhat-release
/etc/debian_version
/etc/SuSE-release
/etc/slackware-version
/etc/gentoo-release

 cat /etc/*-release

或者

cat /etc/*-version

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *