mirror of
https://github.com/alebcay/awesome-shell.git
synced 2026-03-09 11:43:08 -05:00
Simple http server #546
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yamakaky on GitHub (Jun 16, 2015).
python3 -m http.server <port>andpython2 -m SimpleHTTPServer <port>launches a simple http server in the current directory.@alebcay commented on GitHub (Jun 17, 2015):
This appears to be a Python built-in, and not a shell program. If anything, this should go under awesome-python. Thanks for your contribution, though.
@Yamakaky commented on GitHub (Jun 17, 2015):
ok, but you also need to install the others tools, so why python is different ? One doesn't need to know python to use this command.
@alebcay commented on GitHub (Jun 17, 2015):
Sorry if I misunderstood this tool;
http.server/SimpleHTTPServeris built into Python, right? The shell programs in this list are external programs, not built-ins.@Yamakaky commented on GitHub (Jun 17, 2015):
And ? It's built into python, not bash
@alebcay commented on GitHub (Jun 17, 2015):
I see your point about it not being built into Bash. How would you suppose I make an entry for it then? What page would I point the entry for it to?
By this logic, should I also add all one-liner HTTP servers that can be implemented into programming languages, as seen here?
@Yamakaky commented on GitHub (Jun 17, 2015):
Not all one-liner, only the best/simplest. Python is installed by default on a lot of computers, so it's pretty available, whereas ngincat and bashttpd need to be installed. Plus the command is short.
@alebcay commented on GitHub (Jun 17, 2015):
Who gets to decide that? My idea of simple would probably be
ruby -run -ehttpd . -p8000orphp -S 127.0.0.1:8000and evidently your, as well as anyone else's, idea of what is best or simplest will probably be different.That's the point. This list is pretty much only for things that need to be installed. The list is for tools with a specific purpose. The tools for networking in the list right now do need to be installed, but they do a single job, and they do it pretty well, unlike the Python solution, which is part of Python - a programming language, not designed specifically for networking.
@Yamakaky commented on GitHub (Jun 18, 2015):
Sorry, I wasn't saying the python version is the best, I meant you should keep the simplest command.
I didn't understand it was only for installed packages.