Vmstat command:
View or monitor system resources
1[Email protected] ~]# Vmstat1 32procs-----------Memory-------------Swap-------io------System-------CPU-----3R b SWPD FreeBuff cache si so bi boinchCS US SyIDWA St4 1 0 0 1683632 21684 60504 0 0 8 1 - One 0 0 About 1 0 5 0 0 0 1683592 21684 60532 0 0 0 0 - the 0 1 About 0 0 6 0 0 0 1683592 21684 60532 0 0 0 0 One Ten 0 0 - 0 0
Explanation of the above command: View system resources use every second to perform a total of 3 times after the stop
2.DMESG kernel check information at boot time
[[Email protected]/] #dmesg//Will list all startup information because there's too much content we usually use grep behind the query to filter out the information we don't want to see.
[email protected]/] #dmesg | grep CPU
View CPU-related content at boot time
3.free Command View memory usage status
[Email protected]/] #free [-b|-k|-m|-g]
Option-B shows as Byte-K in kilobytes later
We generally use-m or-G to view memory usage or to view memory size
[Email protected]/] #free-M
1[Email protected] ~]# Free-m2Total used Freeshared buffers Cached3Mem:1838 194 1644 0 + -4-/+ Buffers/cache:113 17245Swap:3999 0 39996[Email protected] ~]# Free-g7Total used Freeshared buffers Cached8Mem:1 0 1 0 0 09-/+ Buffers/cache:0 1TenSwap:3 0 3
View Code
4. The difference between caching and buffering
In a nutshell, cache is used to speed up the data being read from the hard disk, while buffering (buffer) is used to speed up the data written to the hard disk.
5. View CPU Information
Cat/proc/cpuinfo the file is a temporary file, a little reboot changes the file will be newly created, so the information recorded by the file is updated in real time
6.uptime command
The first line of the top command is actually viewed
1 Uptime 2 : $ 3: 1 user, 0.00 0.00 0.00
7.uname viewing system and kernel information
uname option:-A To view all relevant information of the system-r view Kernel version-n view hostname-S view kernel name more using man uname
1[Email protected] ~]#uname-N2 localhostA13[Email protected] ~]#uname-s4 Linux5[Email protected] ~]#uname-a6Linux localhostA12.6. +-358. el6.x86_64 #1SMP Fri Feb A xx: to: -Utc -x86_64 x86_64 x86_64 gnu/Linux7[Email protected] ~]#uname-R8 2.6. +-358. el6.x86_64
8. View the number of system bits
1 [[email protected] ~]# file/bin/ls2 for Gnu/linux 2.6.18, stripped
9. View the Linux system release version
[Email protected] ~]# LSB_RELEASE-ALSB Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch: Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor ID:CentOSDescription: CentOS Release 6.4 (Final) release:6.4codename:final
[Email protected] ~]# cat/etc/redhat-6.4 (Final)
View Code
Linux Server Management: System Management: System Resource View