top processnumber linux code example
Example 1: check the linux process top 10
# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
Example 2: top output for a particual process
# top -p <pid1>,<pid2>, etc
# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
# top -p <pid1>,<pid2>, etc