> For the complete documentation index, see [llms.txt](https://thamizhiniyancs.gitbook.io/cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thamizhiniyancs.gitbook.io/cheatsheets/linux/know-yourself-and-your-system/uname.md).

# uname

## Introduction

This command is used to print system information.

***

## Syntax

`uname [OPTION]...`

***

## Important Flags

| Flags                     | Description                                                                     |
| ------------------------- | ------------------------------------------------------------------------------- |
| `-a, --all`               | print all information, in the following order, except omit -p and -i if unknown |
| `-s, --kernel-name`       | print the kernel name                                                           |
| `-n, --nodename`          | print the network node hostname                                                 |
| `-r, --kernel-release`    | print the kernel release                                                        |
| `-v, --kernel-version`    | print the kernel version                                                        |
| `-m, --machine`           | print the machine hardware name                                                 |
| `-p, --processor`         | print the processor type (non-portable)                                         |
| `-i, --hardware-platform` | print the hardware platform (non-portable)                                      |
| `-o, --operating-system`  | print the operating system                                                      |

***

## Examples

<table><thead><tr><th>Command</th><th>Description</th></tr></thead><tbody><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -a
</code></pre></td><td>Prints all system information.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -s
</code></pre></td><td>Prints the kernel name.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -n
</code></pre></td><td>Prints the hostname of the network node.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -r
</code></pre></td><td>Prints the kernel release date.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -v
</code></pre></td><td>Prints the version of the current kernel.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -m
</code></pre></td><td>Prints the machine hardware name.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -p
</code></pre></td><td>Prints the type of processor.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -i
</code></pre></td><td>Prints the platform of the hardware.</td></tr><tr><td><pre class="language-bash" data-overflow="wrap"><code class="lang-bash">uname -o
</code></pre></td><td>Prints the name of the operating system.</td></tr></tbody></table>
