1.ps
NAME
ps - report a snapshot of the current processes.
EXAMPLES
To see every process on the system using standard syntax:
ps -e
ps -ef
ps -eF
ps -ely
To see every process on the system using BSD syntax:
ps ax
ps axu
To print a process tree:
ps -ejH
ps axjf
To get info about threads:
ps -eLf
ps axms
To get security info:
ps -eo euser,ruser,suser,fuser,f,comm,label
ps axZ
ps -eM
2.top
NAME
top - display Linux tasks
SYNOPSIS
top -hv | -bcHisS -d delay -n iterations -p pid [, pid ...]
The traditional switches '-' and whitespace are optional.
DESCRIPTION
The top program provides a dynamic real-time view of a running
system. It can display system summary information as well as a
list of tasks currently being managed by the Linux kernel. The
types of system summary information shown and the types, order and
size of information displayed for tasks are all user configurable
and that configuration can be made persistent across restarts.
The program provides a limited interactive interface for process
manipulation as well as a much more extensive interface for per‐
sonal configuration -- encompassing every aspect of its opera‐
tion. And while top is referred to throughout this document, you
are free to name the program anything you wish. That new name,
possibly an alias, will then be reflected on top's display and
used when reading and writing a configuration file.