uname command is one of the most useful commands when it comes to gathering basic information about your Unix/Linux system. You can use it to find out the hostname of the system you’re on, the hardware architectures supported by the currently used kernel and the exact release of your system.
This command shows you the node (host) name of your system:
If you’re interested in confirming the hardware platform of your system, this is the command to use.
For Linux, it will return i386 for 32-bit processors or x86_64 for 64-bit ones. For Solaris, it will confirm the actual server type used:
To find out the release and version of your Unix kernel, you need to use uname -r and uname -v.
This allows you to confirm the release of Unix kernel used in your OS.
On Linux, it looks like this:
On Solaris, it’s much shorter and more meaningful, at it gives you the version of Solaris, and not the kernel (this example is for Solaris 10):
For the version of Unix kernel, use uname -v:
Typical Solaris output:
Most usually, you simply use uname to output everything it knows about your system.
On Linux it looks like this:
On Solaris, uname -a output should be similar to this: