> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/kernelversion.md).

# kernelversion

打印当前内核的主版本号

## 补充说明

**kernelversion命令** 用于打印当前内核的主版本号。

### 语法

```
kernelversion
```
