-
Notifications
You must be signed in to change notification settings - Fork 52
linux之查看系统基本信息
LYF edited this page Jun 24, 2017
·
2 revisions
> uname -a
# 输出:
Linux iZ252041roxZ 3.13.0-65-generic #106-Ubuntu SMP Fri Oct 2 22:08:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> cat /proc/cpuinfo
# 输出:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
stepping : 7
microcode : 0x710
cpu MHz : 2300.054
cache size : 15360 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
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 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl pni ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm
bogomips : 4600.10
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
> cat /proc/meminfo
# 输出:
MemTotal: 2048524 kB
MemFree: 220840 kB
Buffers: 270808 kB
Cached: 900096 kB
SwapCached: 0 kB
Active: 1039804 kB
Inactive: 364380 kB
Active(anon): 233420 kB
Inactive(anon): 5812 kB
Active(file): 806384 kB
Inactive(file): 358568 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 76 kB
Writeback: 0 kB
AnonPages: 233328 kB
Mapped: 42616 kB
Shmem: 5952 kB
Slab: 386996 kB
SReclaimable: 367920 kB
SUnreclaim: 19076 kB
KernelStack: 1608 kB
PageTables: 10580 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1024260 kB
Committed_AS: 797248 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 10840 kB
VmallocChunk: 34359720188 kB
HardwareCorrupted: 0 kB
AnonHugePages: 88064 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 55296 kB
DirectMap2M: 2172928 kB
> df -lm
# 输出:
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/vda1 20029 13395 5595 71% /
none 1 0 1 0% /sys/fs/cgroup
udev 487 1 487 1% /dev
tmpfs 100 1 100 1% /run
none 5 0 5 0% /run/lock
none 497 0 497 0% /run/shm
none 100 0 100 0% /run/user
> du -sh #查看当前文件夹大小
> du -sh ~ #查看任意文件夹大小