How to get Linux distribution name and version?

后端 未结 8 1880
轻奢々
轻奢々 2021-02-04 06:28

In Windows I read the registry key SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\ProductName to get the full name and version of the OS.

But in Linux, th

8条回答
  •  终归单人心
    2021-02-04 07:34

    trying this way is an interesting one and less restrictive than lsb-release.

    $ cat /etc/*-release
    

提交回复
热议问题