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

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

  •  05-07-2023
  •  | 
  •  

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

They showed different versions...

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top