1. View the Linux system Kernel version command
[Email protected] ~]# uname-r
3.8.13-35.3.1.el7uek.x86_64
[Email protected] ~]# uname-a
Linux localhost.localdomain 3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed June 15:27:43 PDT x86_64 x86_64 x86_64 gnu/linux
2. View Linux system releases
[Email protected] ~]# cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 7.0 (MAIPO)
[Email protected]]# cat/etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \ r on an \m
3. View Linux System specific version number
[Email protected] ~]# cat/proc/version
Linux version 3.8.13-35.3.1.el7uek.x86_64 ([email protected]) (GCC version 4.8.2 20140120 (Red Hat 4.8.2-16) (gcc)) #2 SM P Wed June 15:27:43 PDT 2014
4. View Linux hard disk size
[Email protected] ~]# DF-LH
File system capacity has been used with available% mount points
/dev/mapper/ol-root 22G 7.2G 15G 33%/
Devtmpfs 857M 0 857M 0%/dev
Tmpfs 866M 84K 866M 1%/DEV/SHM
Tmpfs 866M 9.0M 858M 2%/run
Tmpfs 866M 0 866M 0%/sys/fs/cgroup
/DEV/SDA1 497M 143M 354M 29%/boot
/dev/sr0 3.9G 3.9G 0 100%/run/media/root/ol-7.0 server.x86_64
5. View memory Size
[Email protected] ~]# free-g
Total used free shared buffers Cached
Mem:15 8 7 0 0 5
-/+ Buffers/cache:2 13
Swap:17 0 17
You have new mail in/var/spool/mail/root
[Email protected] ~]# free-m
Total used free shared buffers Cached
mem:16049 8512 7537 0 198 5911
-/+ buffers/cache:2401 13648
swap:18047 0 18047
View memory consumption percentage:
[Email protected] ~]# Free-m | Sed-n ' 2p ' | awk ' {print ' used mem is "$" m,total Mem is "$" m,used percent is "$3/$2*100"% "} '
Used mem is 15765m,total mem are 15949m,used percent is 98.8463%
6. View CPU Count
[Email protected]]# ls/proc/acpi/processor/
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
7, viewing CPU details
[[email protected]/]# cat/proc/cpuinfo
processor:0
vendor_id: AUTHENTICAMD
CPU family:21
Model:2
Model NAME:AMD Opteron (tm) Processor 6348
stepping:0
CPU MHz: 2800.033
Cache size:2048 KB
Fpu:yes
Fpu_exception:yes
cpuid level:13
wp:yes
Flags:fpu vme de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 Clflush MMX FXSR SSE SSE2 syscall NX Mmxext fxsr_opt RDTSCP LM Rep_good CONSTANT_TSC nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm extapic ABM sse4a Misalignsse 3dnowprefet Ch OSVW xop FMA4
bogomips:5600.06
TLB size:1536 4K pages
Clflush size:64
cache_alignment:64
Address Sizes:40 bits physical, bits virtual
Power management: [8]
Processor:1
Vendor_id:authenticamd
CPU family:21
Model:2
Model NAME:AMD Opteron (tm) Processor 6348
stepping:0
CPU mhz:2800.033
Cache size:2048 KB
Fpu:yes
Fpu_exception:yes
CPUID level:13
Wp:yes
FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 Clflush MMX FXSR SSE SSE2 Syscall NX Mmxex T fxsr_opt rdtscp lm rep_good constant_tsc nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm extapic ABM sse4a misal Ignsse 3dnowprefetch OSVW XOP FMA4
bogomips:5600.06
TLB size:1536 4K Pages
Clflush size:64
Cache_alignment:64
Address sizes:40 bits physical, bits virtual
Power management: [8]
......
Processor:7
Common commands for Linux systems