查看Linux内核版本命令

      发布在:个人笔记      评论:0 条评论
<p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13.3333px; white-space: normal; background-color: rgb(255, 255, 255);">一、查看<a href="http://www.ha97.com/category/linux" style="margin: 0px; padding: 0px; text-decoration-line: none; color: rgb(0, 0, 0); border-bottom: 1px dotted rgb(51, 51, 51);">Linux</a>内核版本命令(两种方法):</p><div class="cnblogs_code" style="margin: 5px 0px; padding: 5px; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); overflow: auto; white-space: normal; font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-family: &quot;Courier New&quot; !important;">1、cat /proc/version 2、uname -a</pre></div><p><span style="color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 13.3333px; background-color: rgb(255, 255, 255);">二、查看Linux系统版本的命令(3种方法):</span></p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; overflow: auto; overflow-wrap: break-word; font-size: 12px; font-family: &quot;Courier New&quot; !important;">1、lsb_release -a(提示命令不存在则运行yum install -y redhat-lsb安装)<br>即可列出所有版本信息: 这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。 2、cat /etc/redhat-release<br>这种方法只适合Redhat系的Linux:<br>3、cat /etc/issue<br>此命令也适用于所有的Linux发行版。</pre><p><img src="http://img.80zx.com/ueditor/image/202104/161813131614fd5d.jpg" title="查看内核演示" alt="查看内核演示"></p><p><span style="color: rgb(64, 64, 64); font-family: Menlo, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, Courier, monospace, Inter, sans-serif; font-size: 14.0018px; font-weight: 600; background-color: rgb(236, 236, 236);">cat /etc/os-release</span><span style="color: rgb(64, 64, 64); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, &quot;Noto Sans&quot;, Ubuntu, Cantarell, &quot;Helvetica Neue&quot;, Oxygen, &quot;Open Sans&quot;, sans-serif; font-size: 16.002px;">查看系统版本</span></p>
相关文章
热门推荐