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.