linux命令行下查看系统的相关信息

1.查看Linux系统版本:

# cat /proc/version
Linux version 2.6.37-2.5 ([email protected]) (gcc version 4.5.3 (stbgcc-4.5.3-1.3) ) #30 SMP Thu Sep 13 04:17:55 EDT 2012

2.查看Linux内存信息:

# cat /proc/meminfo
MemTotal:         310676 kB
MemFree:          291512 kB
Buffers:              40 kB
Cached:             6804 kB
SwapCached:            0 kB
Active:             1856 kB
Inactive:           5548 kB
Active(anon):        560 kB
Inactive(anon):        4 kB
Active(file):       1296 kB
Inactive(file):     5544 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:           560 kB
Mapped:             1124 kB
Shmem:                 4 kB
Slab:               7524 kB
SReclaimable:       1812 kB
SUnreclaim:         5712 kB
KernelStack:         344 kB
PageTables:           80 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      155336 kB
Committed_AS:       1784 kB
VmallocTotal:     509876 kB
VmallocUsed:        1624 kB
VmallocChunk:     507768 kB
#

 

3.查看Liunx设备:

# cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 30 brcm
 90 mtd
128 ptm
136 pts
180 usb
189 usb_device
252 ubi0
253 hidraw
254 usbmon

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
 11 sr
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
#

 

你可能感兴趣的:(linux命令行下查看系统的相关信息)