# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thamizhiniyancs.gitbook.io/cheatsheets/linux/know-yourself-and-your-system/uname.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
