News for hackers. Stuff that matters.
Re:Web server in one line of bash by tga on Friday August 16, 2013 @03:10AM (#6222590)
Since everyone uses the one line of bash to just start their favourite complex network utility, I'll also contribute mine:

while true; sudo /usr/sbin/apachectl start; break; done;

Re:Web server in one line of bash by tga on Friday August 16, 2013 @09:08AM (#6223727)
And, for the sake of accuracy, the proper bash syntax would be:

  while true; do sudo /usr/sbin/apachectl start; break; done;
Re:Web server in one line of bash by jiggy2011 on Friday August 16, 2013 @06:10AM (#6223110)
I came to this thread to post the exact same joke.
Re:Web server in one line of bash by ja27 on Friday August 16, 2013 @09:54AM (#6223963)
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?
Re:Web server in one line of bash by alex-g on Friday August 16, 2013 @08:52AM (#6223642)
Otherwise the break has nothing to break out of.
Re:Web server in one line of bash by pezz on Friday August 16, 2013 @05:52AM (#6223053)
Sarcasm.