Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • @ThiefMaster Here are a few sample outputs of the command: * Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-centos-7.6.1810-Core * Linux-4.14.117-grsec-grsec+-x86_64-with-debian-buster-sid Is there anything that is not clear about the linux distribution here? Commented Jan 7, 2020 at 15:06
  • OK, so on those distros it contains some information. In any case, it's arbitrary text and thus not really useful to use in scripts... on Gentoo I have this for example: inux-4.19.86-gentoo-x86_64-Intel-R-_Core-TM-_i5-8259U_CPU_@_2.30GHz-with-glibc2.4 Commented Jan 7, 2020 at 17:35
  • @ThiefMaster Updated the original answer on how to get the specific value instead of arbitrary text. Commented Jan 8, 2020 at 20:34