Reading up on Bash
2 deep · digging since feb 27
- TIL: You can make HTTP requests without curl using Bash /dev/TCP
Bash's /dev/tcp feature allows making HTTP requests by opening a raw TCP socket and writing the request manually, useful when curl or wget are absent.
- What does " 2>&1 " mean?
The shell syntax `2>&1` redirects stderr to stdout, a pattern widely used but often criticized for its unintuitive syntax derived from Unix's `dup2` syscall.