Cheatsheet: Difference between revisions

Line 1,160:
 
*Netstat
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 -ant
Line 1,166 ⟶ 1,175:
*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