实时状态监控

sysstat工具包:

  1. sar: collects and reports system activity information
  2. iostat: reports CPU utilization and I/O statistics for disks
  3. tapestat: reports statistics for tapes connected to the system
  4. mpstat: reports global and per-processor statistics
  5. pidstat: reports statistics for Linux tasks (processes)
  6. vmstat: summary information of memory, processes, paging etc.
  7. nfsiostat-sysstat: reports I/O statistics for network file systems
  8. cifsiostat: reports I/O statistics for CIFS file systems

另外,如下工具也比较常用:

  1. top
  2. ps
  3. free
  4. pmap
  5. pstack
  6. lsof

程序调试分析工具

Linux下的调试工具如下:

  1. gdb: GNU Debugger
  2. gcore: 给运行中的进程产生堆栈

binutils工具包:

  1. ar
  2. as
  3. gprof
  4. ld
  5. nm
  6. objcopy
  7. objdump
  8. ranlib
  9. readelf
  10. size
  11. strings
  12. strip
  13. addr2line

如下工具也比较常用:

  1. strace: 系统调用追踪
  2. valgrind: 内存分析工具

性能分析工具

  1. perf

网络状态监控及分析工具

  1. netstat
  2. ss
  3. ifconfig
  4. ip

bind-utils工具包:

  1. arpaname
  2. dig
  3. host
  4. nslookup
  5. nsupdate

本文作者ruleless, 欢迎评论、交流。
转载请务必标注出处: Linux工具汇总