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