Difference between revisions of "Network Utils"

From Wasya Wiki
Jump to: navigation, search
(Created page with "== Network Utils == === network traffic by-process === sudo tcpdump -k NP | grep Sublime === check that a node is pingable in bash === while ! ping -c1 bjjc_spec_22.ubuntu14...")
 
Line 1: Line 1:
 +
 
== Network Utils ==
 
== Network Utils ==
 +
 
=== network traffic by-process ===
 
=== network traffic by-process ===
 
  sudo tcpdump -k NP | grep Sublime
 
  sudo tcpdump -k NP | grep Sublime
 +
 
=== check that a node is pingable in bash ===
 
=== check that a node is pingable in bash ===
 
  while ! ping -c1 bjjc_spec_22.ubuntu14 &>/dev/null; do :; done ;
 
  while ! ping -c1 bjjc_spec_22.ubuntu14 &>/dev/null; do :; done ;
=== how to tell if port 80 is listening? ===
+
 
telnet? nmap, netstat
+
 
=== how do I know if the system trusts the certificate? ===
 
=== how do I know if the system trusts the certificate? ===
you use curl.
+
you use curl
 +
 
 
=== how to tell if port 80 is listening? What is listening on a particular port? ===
 
=== how to tell if port 80 is listening? What is listening on a particular port? ===
 
  netstat -plnt
 
  netstat -plnt
 
  lsof -nP -i4TCP:$PORT | grep LISTEN
 
  lsof -nP -i4TCP:$PORT | grep LISTEN

Revision as of 01:39, 3 August 2018

Network Utils

network traffic by-process

sudo tcpdump -k NP | grep Sublime

check that a node is pingable in bash

while ! ping -c1 bjjc_spec_22.ubuntu14 &>/dev/null; do :; done ;

how do I know if the system trusts the certificate?

you use curl

how to tell if port 80 is listening? What is listening on a particular port?

netstat -plnt
lsof -nP -i4TCP:$PORT | grep LISTEN