View Linux system configuration commands

Source: Internet
Author: User

I. CPU
[Root @ bogon/] # Cat/proc/cpuinfo

 

Ii. Memory
[Root @ bogon/] # Cat/proc/meminfo

 

Iii. view the number of CPU Cores
1. [root @ bogon/] # getconf long_bit
2. [root @ bogon/] # uname-I

 

4. view the Linux version
1. [root @ bogon/] # Cat/etc/issue
2. [root @ bogon/] # Cat/proc/version

 

V. view the kernel version
[Root @ bogon/] # uname-

 

Vi. Host Name
[Root @ bogon/] # hostname

 

7. View SELinux Information
[Root @ bogon/] # sestatus

 

8. Network
1. IP
[Root @ bogon/] # ifconfig
2. Gateway
[Root @ bogon/] # Cat/etc/sysconfig/Network
3. DNS
[Root @ bogon/] # Cat/etc/resolv. conf
4. Modify the host file
[Root @ bogon/] # Cat/etc/hosts

 

9. disks and partitions
[Root @ bogon/] # DF-H

 

10. view the keyboard layout
[Root @ bogon/] # Cat/etc/sysconfig/keyboard

 

11. view the default language
[Root @ bogon/] # Cat/etc/sysconfig/i18n

 

12. view the size of the file or directory in the disk space

[Root @ bogon/] # Du-H

 

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.