|
1 | 1 | # The `uname` command
|
2 |
| - |
3 | 2 | The `uname` command lets you print out system information and defaults to outputting the kernel name.
|
4 | 3 |
|
5 |
| -### Examples |
6 |
| - |
7 |
| -1. Print out all system information |
8 |
| - |
| 4 | +## Syntax: |
| 5 | +```bash |
| 6 | +$ uname [OPTION] |
9 | 7 | ```
|
10 |
| -uname -a |
11 |
| -``` |
12 |
| - |
13 |
| -2. Print out the kernel version |
14 | 8 |
|
| 9 | +## Examples |
| 10 | +1. Print out all system information. |
| 11 | +```bash |
| 12 | +$ uname -a |
15 | 13 | ```
|
16 |
| -uname -v |
17 |
| -``` |
18 |
| - |
19 |
| -### Syntax: |
20 | 14 |
|
| 15 | +2. Print out the kernel version. |
| 16 | +```bash |
| 17 | +$ uname -v |
21 | 18 | ```
|
22 |
| -uname [OPTION] |
23 |
| -``` |
24 |
| - |
25 |
| -### Additional Flags and their Functionalities |
26 | 19 |
|
27 |
| -|**Short Flag** |**Long Flag** |**Description** | |
28 |
| -|:---|:---|:---| |
29 |
| -|`-a`|`--all`|print all information, except omit processor and hardware platform if unknown| |
30 |
| -|`-s`|`--kernel-name`|print the kernel name| |
31 |
| -|`-n`|`--nodename`|print the network node hostname| |
32 |
| -|`-r`|`--kernel-release`|print the kernel release| |
33 |
| -|`-v`|`--kernel-version`|print the kernel version| |
34 |
| -|`-m`|`--machine`|print the machine hardware name| |
35 |
| -|`-p`|`--processor`|print the processor type (non-portable)| |
36 |
| -|`-i`|`--hardware-platform`|print the hardware platform (non-portable)| |
37 |
| -|`-o`|`--operating-system`|print the operating system| |
| 20 | +## Options |
| 21 | +|**Short Flag**|**Long Flag**|**Description**| |
| 22 | +|:-|:-|:-| |
| 23 | +|`-a`|`--all`|Print all information, except omit processor and hardware platform if unknown.| |
| 24 | +|`-s`|`--kernel-name`|Print the kernel name.| |
| 25 | +|`-n`|`--nodename`|Print the network node hostname.| |
| 26 | +|`-r`|`--kernel-release`|Print the kernel release.| |
| 27 | +|`-v`|`--kernel-version`|Print the kernel version.| |
| 28 | +|`-m`|`--machine`|Print the machine hardware name.| |
| 29 | +|`-p`|`--processor`|Print the processor type (non-portable).| |
| 30 | +|`-i`|`--hardware-platform`|Print the hardware platform (non-portable).| |
| 31 | +|`-o`|`--operating-system`|Print the operating system.| |
0 commit comments