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 ?
What is the difference between ps and top command?
process;top;ps;command;process management
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.)