Test TCP connection without telnet or nc

Test TCP connection without telnet or nc

It’s simple


$ timeout 1 bash -c '< /dev/tcp/google.com/80'

$ echo $?

0