CentOS View Script

Source: Internet
Author: User
Tags disk usage

centos  View Script #!/bin/bashdate >>info.txtecho  "native CentOS version is"  >>info.txtcat / etc/issue >>info.txtcat /etc/redhat-release >>info.txtrpm -q  centos-release. >>info.txt    echo  "native centos  version Details"  >> info.txtcat /proc/version >>info.txtecho  "native CentOS 32-bit or 64-bit"   >> info.txtgetconf long_bit >>info.txtecho  "Native kernel version details"  >>info.txtuname -a  >>info.txtecho  "Native CPU name"  >>info.txtmore /proc/cpuinfo | grep  " Model name " >>info.txtecho  native CPU bits"  >>info.txtgetconf LONG_BIT > >info.txtecho  "Number of native CPU logic"  >>info.txtcat /proc/cpuinfo | grep  "processor " | wc -l >>info.txtecho  " Native CPU physical number " >>info.txtcat /proc/ cpuinfo | grep  "PhysicaLPH id " | sort | uniq | wc -l >>info.txtecho " The number of cores per physical CPU cores " >>info.txtcat /proc/cpuinfo | grep " Cpu cores "  >>info.txtgetconf LONG_BIT >>info.txtyum install dmidecode -yecho  " Number of native memory slots and memory size " >>info.txtdmidecode|grep -P -A5 " Memory\s+device "| grep  size | grep -v range >>info.txtecho  "natively supports maximum memory"  >> info.txtdmidecode | grep -p  ' maximum\s+capacity '  >>info.txtecho  ' native memory strip frequency   NOTE: Motherboard compatible memory frequency, not real memory frequency " >>info.txtdmidecode | grep  ' Speed '  >> info.txtecho  "native hard disk partition condition"  >>info.txtlsblk >>info.txtecho  "native hard disk usage"  > >info.txtdf -h >>info.txtyum install -y curlecho  "Native public network IP"  > >info.txtcurl icanhazip.com >>info.txT

CentOS View Script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.