What is the difference between /proc/version and /etc/redhat-release? [closed]

StackOverflow https://stackoverflow.com/questions/23138666

  •  05-07-2023
  •  | 
  •  

Frage

What is the difference between /proc/version and /etc/redhat-release?

They showed different versions...

War es hilfreich?

Lösung

One tells you about the kernel. The other tells you about the distribution.

  • /proc/version has the linux kernel version (and some other stuff).
  • /etc/redhat-release has the version/release of Redhat that you're using.

If you upgrade your kernel, then /proc/version will change but /etc/redhat-release won't.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top