uname command in Linux with Examples
The command ‘uname‘ displays the information about the system.
Syntax:
uname [OPTION]
Options and Examples
1. -a option: It prints all the system information in the following order: Kernel name, network node hostname, kernel release date, kernel version, machine hardware name, hardware platform, operating system
.
Syntax:
$uname -a
Output:
2. -s option: It prints the kernel name.
Syntax:
$uname -s
Output:
3. -n option: It prints the hostname of the network node(current computer).
Syntax:
$uname -n
Output:
4. -r option: It prints the kernel release date.
Syntax:
$uname -r
Output:
5. -v option: It prints the version of the current kernel.
Syntax:
$uname -v
Output:
6. -m option: It prints the machine hardware name.
Syntax:
$uname -m
Output:
7. -p option: It prints the type of the processor.
Syntax:
$uname -p
Output:
8. -i option: It prints the platform of the hardware.
Syntax:
$uname -i
Output:
9. -o option: It prints the name of the operating system.
Syntax :
$uname -o
Output:
Please Login to comment...