Cheatsheet: Difference between revisions
Content added Content deleted
(→Misc) |
|||
Line 1,160: | Line 1,160: | ||
*Netstat |
*Netstat |
||
netstat -s |
netstat -s |
||
netstat -a Listing all ports (both TCP and UDP) |
|||
netstat -at Listing TCP Ports connections |
|||
netstat -au Listing UDP Ports connections |
|||
netstat -l Listing all LISTENING Connections |
|||
netstat -lt Listing all TCP Listening Ports |
|||
netstat -s Showing Statistics by Protocol |
|||
netstat -st Showing Statistics by TCP Protocol |
|||
netstat -tp Displaying Service name with PID |
|||
netstat -r Displaying Kernel IP routing |
|||
netstat -anp |
netstat -anp |
||
netstat -ant |
netstat -ant |
||
Line 1,166: | Line 1,175: | ||
*ps |
*ps |
||
ps -aux Display all processes in BSD format |
|||
ps -aux |
|||
ps -eo pid,ppid,user,cmd |
|||
ps -ant |
|||
ps -e --forest Print Process Tree |
|||
ps -anp |
|||
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head |
|||
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head |
|||
*ls |
*ls |