And, for the sake of accuracy, the proper bash syntax would be:
while true; do sudo /usr/sbin/apachectl start; break; done;I came to this thread to post the exact same joke.
That's nothing. I made a webserver with just two keystrokes: control-C, control-V. You do have to have Apache installed though.
Re:Web server in one line of bash
by general_failure on Friday August 16, 2013 @05:40AM
(#6223025)
Why is there a while true?
Otherwise the break has nothing to break out of.
while true; sudo /usr/sbin/apachectl start; break; done;