一、查看进程
1.1 查看正在运行的进程
# ps aux | less
1.2 查看指定进程
pgrep mongo-connector
注:mongo-connector为进程名
1.3 查看用户vivek运行的进程
# ps -u vivek
1.4 查看进程树
pstree
1.5 查看动态进程
top
1.6 查看进程总数
# ps -fe | wc -l
二、退出正在查看的进程
q
三、显示当前内存的使用
# free -m
一、查看进程
1.1 查看正在运行的进程
# ps aux | less
1.2 查看指定进程
pgrep mongo-connector
注:mongo-connector为进程名
1.3 查看用户vivek运行的进程
# ps -u vivek
1.4 查看进程树
pstree
1.5 查看动态进程
top
1.6 查看进程总数
# ps -fe | wc -l
二、退出正在查看的进程
q
三、显示当前内存的使用
# free -m