How to get Linux distribution name and version?

后端 未结 8 2006
轻奢々
轻奢々 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:21

    lsb_release -ds ; uname -mr

    on my system yields the following from the bash (terminal) prompt:

    Ubuntu 10.04.4 LTS
    2.6.32-41-generic x86_64
    

提交回复
热议问题