在Linux下查看系统名称
有时候需要查看系统名称,由于使用不多,以至于经常遗忘,反复Google搜索查询命令,此次还是决定记录下来,好记性不如烂笔头。方法:
> cat /etc/issueFedora release 17 (Beefy Miracle)Kernel \r on an \m (\l)
其它相关命令:
1.用户查询系统内核版本,主机名,域名等
> uname -aLinux local.localhost 3.4.4-3.fc17.i686 #1 SMP Tue Jun 26 21:32:03 UTC 2012 i686 i686 i386 GNU/Linux
2.与1类似的功能
> sysctl -a | grep os……kernel.hostname = local.localhostkernel.osrelease = 3.4.4-3.fc17.i686kernel.ostype = Linux……
页:
[1]