Linux, CentOS View system version, BIOS version, memory information, etc.

Source: Internet
Author: User

1. View the system version

[Email protected] ~]# more/etc/issue
CentOS Release 6.2 (Final)
Kernel \ r on an \m

2. View CPU Information:

[Email protected] ~]#more/proc/cpuinfo

3. View BIOS version information and memory information, server model

[Email protected] ~]#dmidecode

4. View Host Name:

[Email protected] ~]#hostname

localhost

5. View kernel/Os/cpu information

[Email protected] ~]#uname-a

Linux localhost 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT x86_64 x86_64 x86_64 gnu/linux

6. List all PCI devices

[Email protected] ~]#Lspci-tv

7. List all USB devices:

[Email protected] ~]#Lsusb-tv

8. List the loaded kernel modules

[Email protected] ~]#lsmod

9. View environment variables, character set (LANG), Historical command bar (history)

[[email protected] ~]#env

10. View memory usage and swap area usage

[Email protected] ~]#free-m

11. Check the usage of each partition:

[Email protected] ~]#df-h

12. View the size of the specified directory:

[[email protected] ~]#du-sh < directory name >

13. View Total Memory

[[email protected] ~]#grep memtotal/proc/meminfo or Top

memtotal:32865012 KB

14. Check the amount of free memory

[[email protected] ~]#grep memfree/proc/meminfo

memfree:32268844 KB

15, check the system running time, number of users, load:

[Email protected] ~]#uptime

14:08:01 up 1:09, 1 user, Load average:0.00, 0.00, 0.00

16. Check the system load:

[Email protected] ~]#more/proc/loadavg

17. View the status of the attached partition

[Email protected] ~]#Mount | column-t

18. View all partitions

[Email protected] ~]#fdisk-l

19. View all swap partitions

[Email protected] ~]#swapon-s

20. View Active Users

[Email protected] ~]#w

21. View specified user information

[[email protected] ~]#ID < user name >

22. View User Log

[Email protected] ~]# last

23. View the current user's scheduled tasks

[Email protected] ~]#crontab-l

24, the system has installed the package

[Email protected] ~]#rpm-qa

Linux, CentOS View system version, BIOS version, memory information, etc.

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.