In Console mode, you cannot get information about the operating system by right-clicking> about. In Linux, you can useUname command to help you complete these tasks. Uname isThe abbreviation of unix name. In the console, you only need to type uname.
When you enter an uname without a parameter, it only displays the name of your operating system.
# uname
Linux
Maybe this cannot meet your needs. Therefore, you need to add some parameters to enable the uname to display the information you need.
The following is a list of uname parameters.
1. kernel name
You can use the-s parameter to display the kernel name. You can run this command on other Unix-like systems. For example, the mac will show Darwin)
# uname -s
Linux
The output information is the same as that output when uname does not contain parameters.
2. kernel release
If you want to know which kernel release version you are using (Different kernel package versions), you can use the-r parameter.
# uname -r
2.6.18-371.1.2.el5
3. kernel version
In addition to some kernel information, you can use the-v parameter uname to obtain more detailed kernel version information ).
# uname -v
#1 SMP Tue Oct 22 12:57:43 EDT 2013
4. node name
Parameter-n will provide the host name of your node. For example, if your host name is "dev-machine", the-n parameter prints the host name.
# uname -n
dev-machine
For RedHat and CentOS users, you can also view them through the/etc/redhat_release file:
# cat /etc/redhat_release
CentOS release 5.10 (Final)
If it is not a RedHat-based release, you can view the/etc/issue file. For example:
# cat /etc/issue
Linux Mint Olivia \n \l:
5. Hardware name
If you want to know which machine is used, you can try the-m parameter. It tells you about the hardware.
# uname -m
i686
I686 indicates that you are using a 32-bit operating system, and X86_64 indicates that you are using a 64-bit system.
6. Hardware Platform
Similar to the hardware name, the-I parameter displays your hardware platform ).
# uname -i
i386
Similarly, i386 means that a 32-bit system is running. If X86_64 is output, a 64-bit system is running.
7. Processor type
You can use the-p parameter to view the processor type. If the uname cannot be identified, it will display 'unknown 'as the output.
# uname -p
i686
8. Operating System
The uname can also disclose information about the operating system you are running. You can use the-o parameter to achieve this purpose.
# uname -o
GNU/Linux
9. All information
There is a parameter that shows all the information! This is the-a parameter, which displays all information. If the-I and-p outputs are unknown, they are ignored by default.
# uname -a
Linux dev-machine 2.6.18-371.1.2.el5 #1 SMP Tue Oct 22 12:57:43 EDT 2013 i686 i686 i386 GNU/Linux
The above is about the use of the uname command. Please wait for more commands!