您的位置:首页 > 运维架构 > Linux

ubuntu中如何查看系统信息(uname)

2017-08-28 16:38 369 查看
问题

linux中ubuntu中如何查看系统的信息呢?

解决方法

1 用uname查看系统信息

aston@ubuntu:~$ uname -n
ubuntu
aston@ubuntu:~$ uname -s
Linux


2 总的指令

aston@ubuntu:~$ uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

-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
--help     display this help and exit
--version  output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/uname>
or available locally via: info '(coreutils) uname invocation'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息