美文网首页
Linux查各种

Linux查各种

作者: chocolee911 | 来源:发表于2018-10-25 09:24 被阅读0次

    1.查系统版本

    1. CentOS

    cat /etc/system-release
    

    2. Ubuntu

    cat /etc/lsb-release
    

    3. Manjaro

    cat /etc/lsb-release
    

    4. Deepin

    cat /etc/lsb-release
    

    2. 查内存(所有release使用相同命令)

    free -h
    

    3. 查CPU型号(所有release使用相同命令)

    cat /proc/cpuinfo
    

    4. 查MAC地址(所有release使用相同命令,前提是安装 net-tools)

    ifconfig | grep ether
    

    5. 查系统安装日期(所有版本相同,部分系统需要使用sudo才能使用命令)

    passwd -S daemon
    

    相关文章

      网友评论

          本文标题:Linux查各种

          本文链接:https://www.haomeiwen.com/subject/zifqtqtx.html