Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




/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



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: