linux 命令收集

2017/02/12 iteye
  1. 不显示/etc/services #开头的行, /etc/services文件并没有修改 sed -e '/^#/d' /etc/services | more 2. 忽略前十行,显示后面的内容 sed -e '1,10d' /etc/services | more 3. 打印所有包括BEGIN的行和END行之间的行的内容 sed -n -e '/BEGIN/,/END/p' /my/test/file | more 4. SAR pidstat -p 3132 2 5 //每隔2秒,显示5次,PID为3132的进程的CPU使用情况显示 pidstat -p 3132 2 5 -r //每隔2秒,显示5次,PID为3132的进程的内存使用情况显示

Search

    Table of Contents