Linux command
One-liner web server in bash
网络
Uses pipes, overwrite, or deletion. Check paths and options first.
命令示例
One-liner web server in bash
while true; do echo -e "HTTP/1.1 200 OK\n\n$(date)" | nc -l 8080; done
说明
Useful Linux one-liner
FAQ
What is the while command used for?
Useful Linux one-liner
How do I run a basic while example?
Run `while true; do echo -e "HTTP/1.1 200 OK\n\n$(date)" | nc -l 8080; done` in a terminal, then adjust file names, paths, flags, or remote targets for your system.