自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

一篇帶給你Linux 查看版本信息

系統(tǒng) Linux
Linux有很多發(fā)行版本,一般通過內(nèi)核就可以判斷大致的發(fā)行版本。但是如果需要詳細(xì)的發(fā)行版本信息,就可以借助命令進(jìn)行查看。

 簡介

Linux有很多發(fā)行版本,一般通過內(nèi)核就可以判斷大致的發(fā)行版本。但是如果需要詳細(xì)的發(fā)行版本信息,就可以借助命令進(jìn)行查看。

[[397535]]

lsb_release

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

[[397536]]

lsb_release可以快速過濾這些信息找到自己需要的字段,這個命令有可能沒有自帶,可以自行安裝lsb-release包就可以有了。

  1. lsb_release -h 

  1. FSG lsb_release v1.4 prints certain LSB (Linux Standard Base) and 
  2. Distribution information. 
  3.  
  4. Usage: lsb_release [OPTION]... 
  5. With no OPTION specified it is the same as -v. 
  6.  
  7. Options: 
  8.   -v, --version 
  9.     Display the version of the LSB specification against which the distribution is compliant. 
  10.   -i, --id 
  11.     Display the string id of the distributor. 
  12.   -d, --description 
  13.     Display the single line text description of the distribution. 
  14.   -r, --release 
  15.     Display the release number of the distribution. 
  16.   -c, --codename 
  17.     Display the codename according to the distribution release. 
  18.   -a, --all 
  19.     Display all of the above information. 
  20.   -s, --short 
  21.     Display all of the above information in short output format. 
  22.   -h, --help 
  23.     Display this message. 

  1. lsb_release -a 

  1. LSB Version:    n/a 
  2. Distributor ID: ManjaroLinux 
  3. Description:    Manjaro Linux 
  4. Release:    21.0.2 
  5. Codename:   Ornara 

 Version文件

lsb_release這個命令需要有另外安裝,如果沒有安裝也可以通過其他的版本信息文件找到版本的信息。

RHEL系列:/etc/redhat-release、/etc/os-release、/etc/system-release 等,這些文件一般都是指向同一個文件,如果是重新發(fā)行的版本,例如centos,還會有/etc/centos-release

Debian系列:/etc/debian-version、/etc/issue等,同樣重新發(fā)行的版本也會有對應(yīng)的version文件。

[[397537]]

內(nèi)核版本

查看內(nèi)核版本一般都使用uname這個命令。

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

 用這個命令也可以快速過濾到自己需要的字段。

也可以直接查看/proc/version來查看當(dāng)前云中的內(nèi)核版本

  1. cat /proc/version 
  2. 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 

 【編輯推薦】

 

責(zé)任編輯:姜華 來源: 今日頭條
相關(guān)推薦

2021-07-12 06:11:14

SkyWalking 儀表板UI篇

2022-02-25 15:50:05

OpenHarmonToggle組件鴻蒙

2021-04-14 07:55:45

Swift 協(xié)議Protocol

2021-07-08 07:30:13

Webpack 前端Tree shakin

2023-03-13 09:31:04

2021-05-08 08:36:40

ObjectString前端

2021-10-28 08:51:53

GPIO軟件框架 Linux

2021-04-23 08:59:35

ClickHouse集群搭建數(shù)據(jù)庫

2021-07-21 09:48:20

etcd-wal模塊解析數(shù)據(jù)庫

2021-06-21 14:36:46

Vite 前端工程化工具

2021-01-28 08:55:48

Elasticsear數(shù)據(jù)庫數(shù)據(jù)存儲

2021-04-01 10:51:55

MySQL鎖機(jī)制數(shù)據(jù)庫

2021-04-14 14:16:58

HttpHttp協(xié)議網(wǎng)絡(luò)協(xié)議

2022-04-29 14:38:49

class文件結(jié)構(gòu)分析

2023-03-29 07:45:58

VS編輯區(qū)編程工具

2021-03-12 09:21:31

MySQL數(shù)據(jù)庫邏輯架構(gòu)

2024-06-13 08:34:48

2022-03-22 09:09:17

HookReact前端

2022-02-17 08:53:38

ElasticSea集群部署

2021-04-08 11:00:56

CountDownLaJava進(jìn)階開發(fā)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號