uname command – print Unix system information
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.
Basic uname usage
uname -n
This command shows you the node (host) name of your system:
uname -i
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:
Release and version of the Unix kernel
To find out the release and version of your Unix kernel, you need to use uname -r and uname -v.
uname -r
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:
Common uname usage
uname -a
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:
See Also
- How to Find the Release Version of your Unix
- Basic Unix Commands
- Unix System Monitoring Commands
- Commands in Unix
- How to Find Out RedHat version
- Advanced Unix Commands
- Check CentOS Version
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.
Basic uname usage
uname -n
This command shows you the node (host) name of your system:
uname -i
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:
Release and version of the Unix kernel
To find out the release and version of your Unix kernel, you need to use uname -r and uname -v.
uname -r
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:
Common uname usage
uname -a
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:
See Also
- How to Find the Release Version of your Unix
- Basic Unix Commands
- Unix System Monitoring Commands
- Commands in Unix
- How to Find Out RedHat version
- Advanced Unix Commands
- Check CentOS Version