← 返回命令列表

Linux command

lsb_release 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

lsb_release --all

Example

lsb_release --description

Example

lsb_release -is

Example

lsb_release -rcs

说明

lsb_release displays Linux Standard Base (LSB) and distribution-specific information about the installed Linux distribution, including distributor ID, description, release number, and codename.

参数

-a, --all
Print all available information
-d, --description
Print distribution description
-i, --id
Print distributor ID
-r, --release
Print release number
-c, --codename
Print codename
-s, --short
Short output format (omit field names)
-v, --version
Print LSB version

FAQ

What is the lsb_release command used for?

lsb_release displays Linux Standard Base (LSB) and distribution-specific information about the installed Linux distribution, including distributor ID, description, release number, and codename.

How do I run a basic lsb_release example?

Run `lsb_release --all` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in lsb_release?

Print all available information