List all the processes that are running:
Use this command to list all the processes that are running now:
ps -ef. Or ps -aux.
About the difference between them: http://www.360doc.com/content/11/0426/13/6702151_112429071.shtml.
In general, there is no much difference.
Kill process:
If you want to kill a process, you can use the kill command by these two:
1) kill -s 9 (pid)
2) kill -l (pid)
-l选项告诉kill命令用好像启动进程的用户已注销的方式结束进程。当使用该选项时,kill命令也试图杀死所留下的子进程。但这个命令也不是总能成功--或许仍然需要先手工杀死子进程,然后再杀死父进程。(Prevent from leaving the children process)
3) kill (pid)
Here is a useful link of this:
http://www.cnblogs.com/wangkangluo1/archive/2012/05/26/2518857.html
http://blog.sina.com.cn/s/blog_975a2a540100ywyx.html
To investigate the portal usage of process:
http://www.cnblogs.com/benio/archive/2010/09/15/1826728.html
Use netstat -apn to see all the portals that are used and the processes that are using them.
Linux查看是多少位系统:
file /sbin/init