Record Centos commands on 192.168.0.148

Source: Internet
Author: User

Record Centos commands on 192.168.0.148. view cpu grep "model name"/proc/cpuinfo 2. check whether the cpu is 32-bit or 64-bit getconf LONG_BIT 3. view the current linux version cat/etc/redhat-release ~~~ CentOS release 5.8 (Final )~~~ 4. view kernel version uname-r uname-a 5. view memory grep MemTotal/proc/meminfo | cut-f2-d: free-m | grep "Mem" | awk '{print $2}' 6. view the hard disk and partition df-h fdisk-l. You can also view the partition du-sh to see all occupied space du/etc-sh and the size of the/etc directory 7. view the installed software package view the software package cat-n/root/install installed during system installation. logmore/root/install. log | wc-l 8. view the keyboard layout cat/etc/sysconfig/keyboardcat/etc/sysconfig/keyboard | grep KEYTABLE | cut-f2-d = 9. query View selinux sestatussestatus | cut-f2-d: cat/etc/sysconfig/selinux 10. View ip, mac address in the ifcfg-eth0 file you can see mac, Gateway and other information. Ifconfig cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR | cut-f2-d = ifconfig eth0 | grep "inet addr: "| awk '{print $2}' | cut-c 6-ifconfig | grep 'inet addr: '| grep-V' 127. 0.0.1 '| cut-d:-f2 | awk' {print $1} 'view gateway cat/etc/sysconfig/network view dns cat/etc/resolv. conf view default language echo $ LANG $ LANGUAGEcat/etc/sysconfig/i18n 11. check the time zone and whether the UTC time cat/etc/sysconfig/clock 12 is used. check the host name cat/etc/sysconfig/network. Modifying the host name is the best way to modify the host file. 13. view the boot time uptime 14. view the motherboard information dmidecode | more

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.