4 examples for top

{{ score }}
  # monitor the process with pid 1, 2, and 3 
top -p 1, 2, 3
        
{{ score }}
  # order by memory
top -o %MEM
        
{{ score }}
  # Order by cpu usage 
top -o cpu
        
{{ score }}
  # Run the top command once, and only show the header and first 8 processes
# Can be further parsed with '| awk ...' in various scripts
top -n 1 | head -n 15