Reading up on Bash
5 deep · digging since feb 27
- The Command Line as Franken-REPL — The Autodidacts
The command line is best understood as an everything-REPL where all programs, scripts, and coreutils function as native functions in a computer-wide, scriptable environment.
- Ten lines of code that changed my world
The author shares how a mere ten-line script automated a repetitive task, dramatically improving their daily productivity and reshaping their approach to work.
- 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.