Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Linux教程:uname 使用

$
0
0
uname uname用于打印操作系统和硬件架构相关的信息,对于可能在多个系统或架构上运行的Shell脚本程序很有用, 缺省选项相当于 -s 或 --system
$uname [-amnrsvpio]

-a 或 --all 显示全部的信息

$ uname -a
linux E435 3.19.0-68-generic #76-Ubuntu SMP Fri Aug 12 08:48:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

-m 或 --machine 显示电脑类型

$ uname -m
x86_64

-n 或 --nodename 显示在网络上的主机名称

$ uname -n
E435

-r 或 --kernel-release 显示操作系统的发行编号

$ uname -r
3.19.0-68-generic

-s 或 --system 显示操作系统名称

$ uname -s
Linux

-v 或 --kernel-version 显示操作系统版本

$ uname -v
#76-Ubuntu SMP Fri Aug 12 08:48:09 UTC 2016

-p 或 --processor 显示处理器类型

$ uname -p
x86_64

-i 或 --hardware-platform 显示硬件平台

$ uname -i
x86_64

-o 或 --operationg-system 显示操作系统

$ uname -o
GNU/Linux

本文永久更新链接地址 : http://www.linuxidc.com/Linux/2016-09/135150.htm


Viewing all articles
Browse latest Browse all 11063

Trending Articles