|How to use the [uname] command effectively in Unix|
|How to - Linux|
This article may seem to be quite meaningless in the beginning but you might find it very useful later on. Specially if your daily job involves a lot of shell scripting and someday you want to fetch a specific part from the output of "uname -a" command. The outputs shown here are from Solaris 10 system but don't worry, the command works the same across all Unix platforms.
cheap cialis no prescriptioncanadian drugstore best price 50mg sildenafil generic cialis no prescription
To begin with type the "uname -a" at the shell. The output will give you the system info in one single line. It includes OS name, system name, system architecture etc.
Now suppose you want to pick up a specific info from the above line. You can do this by using different to the uname command. I will start from the beginning of the line. First comes the OS name.
Next in line is the hostname.
Now the OS version.
Next comes Generic_127127-11.
Now comes sun4u.
Next in line is the OS architecture. In this case its Solaris sparc.
The last but not the least is SUNW,Sun-Fire-V240