What command outputs Linux version info / distribution name? What about kernel version? Thanks!
Short answer - try this command:
cat /proc/version
It may output something like this:
Linux version 2.6.18-371.4.1.el5 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Wed Jan 8 18:42:07 EST 2014
Here is the article that explains proc version output format in more details
FavScripts.com is a free tool to save your favorite scripts and commands, then quickly find and copy-paste your commands with just few clicks.
Boost your productivity with FavScripts.com!