查看linux服务器的版本信息


  • 查看linux系统信息
    uname -a
    Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • 输出内容分析:
uname --help / uname -h
  -a, --all                print all information, in thefollowing 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 or"unknown"

 -i, --hardware-platform  print the hardware platform or"unknown"

 -o, --operating-system   print the operating system

     -- help    display this help and exit     


  • uname -s 内核名称
    Linux
  • uname -n 节点名称
    localhost.localdomain
  • uname -r 内核的发型号
    3.10.0-693.el7.x86_64
  • uname -v 内核版本
    #1 SMP Tue Aug 22 21:09:27 UTC 2017
  • uname -m 机器硬件名称
    x86_64
  • uname -p 处理器类型
    x86_64
  • uname -i 硬件平台
    x86_64
  • uname -O 操作系统
    GNU/Linux
  • 查看linux时Centos还是ubuntu
    执行lsb_release -a 命令存在表示为ubuntu系统
    cat /etc/redhat-release 文件存在为centos


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM