Wednesday, May 30, 2012

Commands to know the Linux Distro Name, Version, Kernel Info, Bit Info (32/64Bit)


Want to know which Linux Distro, Version, Kernal Info & Bit Info


1.) cat /proc/version     ( Linux Version & Kernal Info )
2.) cat /etc/*-release     ( provides info of linux distro)
3.) file /sbin/init     (Provides Bit Info - 32/64 Bit)


Below given is the output of the command you run:-


[root@nod114 /]# cat /proc/version
Linux version 2.6.18-1.2798.fc6 (brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:37:32 EDT 2006
[root@nod114 /]# cat /etc/*-release
Fedora Core release 6 (Zod)
Fedora Core release 6 (Zod)
[root@nod114 /]# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[root@nod114 /]#




No comments:

Post a Comment