Process Top PS Command Process Management – Difference Between PS and Top Command

commandprocessprocess-managementpstop

What is the difference between ps and top command ? I see that both can display information about running processes . Which one should be used when ?

Best Answer

top is mostly used interactively (try reading man page or pressing "h" while top is running) and ps is designed for non-interactive use (scripts, extracting some information with shell pipelines etc.)

Related Question