image.png
netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multi-cast memberships
參數說明 -t --tcp -l --listening -n --numeric -p --program
ps - report a snapshot of the current processes. 參數說明: -e Select all processes. Identical to -A. -f Do full-format listing. This option can be combined with many other UNIX-style options to add additional columns. It also causes the command arguments to be printed. When used with -L, the NLWP (number of threads) and LWP (thread ID) columns will be added. See the c option, the format keyword args, and the format keyword comm.
[root@localhost ~]# ps -ef| grep java
-9