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

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

  •  05-07-2023
  •  | 
  •  

Question

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

They showed different versions...

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top