View server version information

uname command prints information about the current system (kernel version number, hardware architecture, host name, and operating system type, etc.).

uname -a: All of the information;

xxxxx@xxxx:~$ uname -a
Linux xxxx 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux

-m or -machine: the type of computer display;

xxxx@xxxx:~$ uname -m
x86_64

-v: Displays the version of the operating system;
-version: Display version information.

xxxxx@xxxxx:~$ uname -v
#1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20)

xxxxu@xxxx:~$ uname --version
uname (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
许可证 GPLv3+:GNU 通用公共许可证第 3 版或更新版本<https://gnu.org/licenses/gpl.html>
本软件是自由软件:您可以自由修改和重新发布它。
在法律范围内没有其他保证。

由David MacKenzie 编写。

Display system version

## 自己是什么系统etc后就跟自己的,别乱抄,redhat就是redhat,我是debian
xxxx@xxxx:~$ cat /etc/debian_version 
10.1
Published 45 original articles · won praise 6 · views 2009

Guess you like

Origin blog.csdn.net/qq_22583191/article/details/104293196