Copied to clipboard

top

The top command line can display the system's operating status in real time. With the top command line, you can view the system load, CPU usage, memory usage, process information, etc.

Example

  • Display system load and CPU usage: top
  • Display process information: top -u username
  • Display information for a specified process: top -p pid
  • Refresh every 5 seconds: top -d 5
  • Display memory usage: top -l
  • Display thread information: top -H
  • Display a summary of processes and CPU states: top -t
  • Display process memory usage: top -m