工作常用命令

1,查看内存使用:free -m

 

$ free -m
             total       used       free     shared    buffers     cached
Mem:          1504       1491         13          0         91        764
-/+ buffers/cache:        635        869
Swap:         2047          6       2041
$

注意,由于linux会占用闲置内存当作cache,所以实际空闲量不是13,而是869

2, 实时监听log: tail -f

tail -300f abc.log

 

 

猜你喜欢

转载自hellobbboy.iteye.com/blog/2343406