uname Linux command
The uname
command in Linux is used to get information about the system such as the kernel name, network node hostname, kernel release, kernel version, machine hardware name, and processor type. It also provides information about the operating system. By default, uname -a
is used to display all system information. Other options like -s
, -r
, -m
, and -p
can be used to display specific information. The uname
command is helpful for system administrators and users who need to retrieve system information quickly and efficiently.
uname Syntax:
Section titled “uname Syntax:”uname [option]
Options:
Section titled “Options:”Option | Description |
---|---|
-a | Display all information |
-s | Print the kernel name |
-n | Print the network node hostname |
-r | Print the kernel release |
-v | Print the kernel version |
-m | Print the machine hardware name |
-p | Print the processor type or “unknown” |
-i | Print the hardware platform or “unknown” |
-o | Print the operating system |
Parameters:
Section titled “Parameters:”Parameter | Description |
---|---|
None | No parameters exist for the uname command |
uname bash Examples:
Section titled “uname bash Examples:”Display System Information
Section titled “Display System Information”uname
This command displays system information such as the kernel name, node name, kernel release, kernel version, machine hardware name, and operating system.
Display Kernel Version
Section titled “Display Kernel Version”uname -r
Using this option, you can specifically display the kernel release version of the current system.
Display Processor Type
Section titled “Display Processor Type”uname -p
This command shows the type of processor the system is using.
Display Operating System
Section titled “Display Operating System”uname -o
By using this option, you can display the operating system name.
Display Operating System and Architecture
Section titled “Display Operating System and Architecture”uname -a
Using this option combines multiple pieces of system information into a comprehensive display, including the operating system and architecture.
Display Machine Hardware Name
Section titled “Display Machine Hardware Name”uname -m
Shows the machine hardware name the system is running on.
uname Command Help Center:
Section titled “uname Command Help Center:”How do I use uname in Linux?
Section titled “How do I use uname in Linux?”To use the uname command in Linux, execute the following command:
uname
How can I display the kernel name with uname?
Section titled “How can I display the kernel name with uname?”To display the kernel name using uname, run the following command:
uname -s
How to show the network node hostname with uname?
Section titled “How to show the network node hostname with uname?”You can display the network node hostname using uname with the following command:
uname -n
How to get the kernel release information with uname?
Section titled “How to get the kernel release information with uname?”To get the kernel release information using uname, use the command:
uname -r
How can I check the machine hardware platform with uname?
Section titled “How can I check the machine hardware platform with uname?”To check the machine hardware platform using uname, run the following command:
uname -i
How to display the operating system name with uname?
Section titled “How to display the operating system name with uname?”You can display the operating system name using uname with the following command:
uname -o
How do I get the processor type information with uname?
Section titled “How do I get the processor type information with uname?”To get the processor type information using uname, execute the following command:
uname -p
How to show all system information with uname?
Section titled “How to show all system information with uname?”To display all system information using uname, run the following command:
uname -a
Applications of the uname command
Section titled “Applications of the uname command”- Display system information
- Check the kernel version
- Determine the operating system
- Identify the machine hardware
- Get information about the processor
- Print out the node name
- Check the release information