linux - 为什么我不能在没有 -a 参数的情况下在 ubuntu 上运行 lsb_release?

标签 linux

为什么我不能在没有 -a 参数的情况下在 ubuntu 上运行 lsb_release?因为当我运行 lsb_release 命令时,我收到消息“没有可用的 LSB 模块”。

最佳答案

说明: lsb_release 命令 - 打印您机器上的 linux 发行版。

解决方案:-v(version)在没有参数的情况下是默认的。要观看 linux 发行版的完整信息,请始终使用 -a 标记或 -r 用于版本号。

示例:

$lsb_release -a

#output:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:    18.04
Codename:   bionic

$lsb_release -r

#output:
Release:    18.04

标志是:

       -v, --version
              Show the version of the LSB against which your current installation is compliant.  The version is expressed as a colon separated list of LSB module descriptions.

       -i, --id
              Display the distributor's ID.

       -d, --description
              Display a description of the currently installed distribution.

       -r, --release
              Display the release number of the currently installed distribution.

       -c, --codename
              Display the code name of the currently installed distribution.

       -a, --all
              Display all of the above information.

       -s, --short
              Use the short output format for any information displayed.  This format omits the leading header(s).

       -h, --help
              Show summary of options.

关于linux - 为什么我不能在没有 -a 参数的情况下在 ubuntu 上运行 lsb_release?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52186181/

相关文章:

python - 更新 puppet 中的包?

c - Linux 字符设备驱动程序如何检测使用它的程序何时异常退出?

linux - 带 vs 不带 $ 的 x64 汇编文字

regex - 为什么 POSIX "printable characters"类不匹配简单字符串?

c++ - linux下练习编程的问题

php - 在再次运行之前等待源 bash 脚本完成

Linux:如何检测进程是否抖动过多?

mysql - 合并 MySQL 数据库

c - meminfo_proc_show() 的枚举和 si_meminfo() 的变量集在哪里?

linux - 我可以从一个网络数据实例监控四台服务器吗?