本站挑战答题题库来源于学习强国,资料内容实时更新,现已开通在线搜索答案查询功能,欢迎相互交流学习。

知识百科

当前位置:首页 > 知识百科

linux查看系统版本(linux查看当前操作版本)

  Linux有很多发行版本,一般通过内核就可以判断大致的发行版本。但是如果需要详细的发行版本信息,就可以借助命令进行查看。

  显示LSB(Linux Standard Base)兼容的发行版本信息。如果是LSB兼容的发行版本,在/etc/lsb-release就可以查看到具体的版本信息。

  lsb_release可以快速过滤这些信息找到自己需要的字段,这个命令有可能没有自带,可以自行安装lsb-release包就可以有了。

  lsb_release -h

  FSG lsb_release v1.4 prints certain LSB (Linux Standard Base) and

  Distribution information.

  Usage: lsb_release [OPTION]...

  With no OPTION specified it is the same as -v.

  Options:

  -v, --version

  Display the version of the LSB specification against which the distribution is pliant.

  -i, --id

  Display the string id of the distributor.

  -d, --description

  Display the single line text description of the distribution.

  -r, --release

  Display the release number of the distribution.

  -c, --codename

  Display the codename according to the distribution release.

  -a, --all

  Display all of the above information.

  -s, --short

  Display all of the above information in short output format.

  -h, --help

  Display this message.

  lsb_release -a

  LSB Version: n/a

  Distributor ID: ManjaroLinux

  Description: Manjaro Linux

  Release: 21.0.2

  Codename: Ornara

  lsb_release这个命令需要有另外安装,如果没有安装也可以通过其他的版本信息文件找到版本的信息。

  RHEL系列:/etc/redhat-release、/etc/os-release、/etc/system-release 等,这些文件一般都是指向同一个文件,如果是重新发行的版本,例如centos,还会有/etc/centos-release

  Debian系列:/etc/debian-version、/etc/issue等,同样重新发行的版本也会有对应的version文件。

  查看内核版本一般都使用uname这个命令。

  uname -a

  Linux manjaro 5.11.14-1-MANJARO #1 SMP PREEMPT Wed Apr 14 08:25:29 UTC 2021 x86_64 GNU/Linux

  用这个命令也可以快速过滤到自己需要的字段。

  也可以直接查看/proc/version来查看当前云中的内核版本

  cat /proc/version

  Linux version 5.11.14-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Wed Apr 14 08:25:29 UTC 2021

帮助:

输入题目中的关键字即可快速查找答案(建议3-5个字)

示例:把毛泽东思想确立为党的指导思想并写入党章的会议是( )。

输入关键字:毛泽东思想、党的指导思想、写入党章,任一组关键字即可

星辰影院支持学习强国:挑战答题、四人赛、双人对战所有题目答案查询。

小小影视全网VIP电影、星辰影院2023最新好看88影视网的电视剧免费观看。更多有男人喜欢的特别美女视频哦!

“Ctrl+D”收藏网址(www.xuexizyk.com),下次搜题不迷路!

文章评论

表情

共 0 条评论,查看全部
  • 这篇文章还没有收到评论,赶紧来抢沙发吧~

猜你喜欢

评论排行榜