Some useful tips about /dev/tcp

Just some simple tips that I found very useful. Bash supports read/write operations on a pseudo-device file /dev/tcp/[host]/[port] [1]. Writing to this special file makes bash open a tcp connection to host:port, and this feature may be used for some useful purposes, for example: Query an NTP server this command: reads the time in Daytime Protocol […]

The post Some useful tips about /dev/tcp first appeared on Andrea Fortuna.

Article Link: https://www.andreafortuna.org/2021/03/06/some-useful-tips-about-dev-tcp/