LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cat /proc/version - displays wrong version (https://www.linuxquestions.org/questions/linux-newbie-8/cat-proc-version-displays-wrong-version-682305/)

babu198649 11-10-2008 04:00 AM

cat /proc/version - displays wrong version
 
hi
i have installed RHEL-4(32 bit version ).When i executed the command
cat /proc/version in the shell it displays the version as 3.4.4-2 as below.Is there any other command to get the right version or the command is right.

[operator@localhost bin]$ cat /proc/version
Linux version 2.6.9-22.ELsmp (bhcompile@porky.build.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005

Thanks

bathory 11-10-2008 04:08 AM

Most likely Red Hat 3.4.4-2 refers to gcc version that comes with your distro (and -2 means update 2). Running
Code:

rpm -qa|grep gcc
should confim that.
If you want to know your Redhat version, run:
Code:

cat /etc/redhat-release

babu198649 11-10-2008 04:10 AM

Thank u
The command worked.

[operator@localhost bin]$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 2)


All times are GMT -5. The time now is 07:32 PM.