hi i'm struggling to figure out how to get the top 5 lines of the PID and COMMAND headers when opening top
at the moment im using
top | awk '{print $1,$2}NR==5{exit}'
this is obviously annoyingly giving me this:
Processes: 390
2021/12/17 13:47:48
Load Avg:
CPU usage:
SharedLibs: 146M