Skip to content
dozens edited this page Nov 7, 2025 · 3 revisions

netcat

Look at this file server

while true; do printf "HTTP/1.1 200 OK\n\n\%s" "$(pandoc index.md)" | nc -l 8888; done

file transfer

catcher: nc -l 4444 > newfile thrower: nc <address> 4444 < myfile

web server

https://dev.to/leandronsp/building-a-web-server-in-bash-part-i-sockets-2n8b

resources

Clone this wiki locally