Advertisement
kyilmaz80

Checking ports To list tcp ports

Sep 22nd, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. Checking ports To list tcp ports that are being listened on,run:
  2.  
  3. sudo netstat -plnt
  4.  
  5. Active Internet connections (only servers)  to filter out everything except the default web server port - number 80 – run:
  6.  
  7. sudo netstat -plnt | grep ':80'
  8.  
  9. tcp 0 0 :::80 :::* LISTEN 8448/httpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement