Some useful commands

Telnet using curl

curl -v telnet://208.67.222.222:443

*   Trying 208.67.222.222:443...
* TCP_NODELAY set_
* Connected to 208.67.222.222 (208.67.222.222) port 443 (#0)

View HTTP headers using curl

curl -I http://www.slackware.com

HTTP/1.1 200 OK
Server: Apache/2.2.22
Last-Modified: Fri, 01 Jul 2016 20:15:06 GMT
ETag: "3c6282-2d8d-53698a47ae680"
Accept-Ranges: bytes
Content-Length: 11661
Content-Type: text/html
Date: Thu, 13 Jun 2019 17:43:42 GMT
Connection: keep-alive

Identify a particular NIC using ethtool

ethtool -p devname(eth0/enp4s0/ens3) # (duration in seconds)

ethtool --identify devname(eth0/enp4s0/ens3) # (duration in seconds)

Comments

Comments powered by Disqus