Hacker News new | ask | show | jobs
by cratermoon 247 days ago
There's also /dev/tcp in Linux

    exec 5<>/dev/tcp/www.google.com/80
    echo -e "GET / HTTP/1.1\r\nhost: www.google.com\r\nConnection: close\r\n\r\n" >&5
    cat <&5
1 comments

/dev/tcp does not exist in Linux.

    ls /dev/tcp
It is an abstraction in GNU Bash.
Pardon, you're correct.
It’s still really cool. I had no idea that existed