Mac电脑终端下查看电脑信息的相关指令
//1、查看系统内核名称:
ishios-MacBook-Pro:~ shixiongwei$ uname -s
Darwin
//2、网络主机名:
ishios-MacBook-Pro:~ shixiongwei$ uname -n
ishios-MacBook-Pro.local
//3、内核版本信息:
ishios-MacBook-Pro:~ shixiongwei$ uname -v
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64
//4、设备发行版本信息:
ishios-MacBook-Pro:~ shixiongwei$ uname -r
15.2.0
//5、机器硬件名:
ishios-MacBook-Pro:~ shixiongwei$ uname -m
x86_64
//6、查看以上1-5所有信息:
ishios-MacBook-Pro:~ shixiongwei$ uname -a
Darwin ishios-MacBook-Pro.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 1