Learn to Build a Chatbot with Laravel and BotMan!
Learn How to Shell with Explain Shell
News / updated: January 12, 2018

Learn How to Shell with Explain Shell

ExplainShell.com is an online tool built by Idan Kamara that visually explains each part of a Unix command by matching command-line arguments to their help text.

You can paste some code, and the site will break down each piece of the command. For example, take the following find command:

find . -type f -print0

The command will produce the following explanation that allows you to filter and navigate each part of the command:

Here’s the background of the material and technologies used to create explainshell.com:

This site contains 29761 parsed manpages from sections 1 and 8 found in Ubuntu’s manpage repository. A lot of heuristics were used to extract the arguments of each program, and there are errors here and there, especially in manpages that have a non-standard layout.

It is written in Python and uses bashlex, a bit of NLTK (to find the interesting parts of the manpage), a little d3.js (for the connecting lines graphic) and Flask. It is served with uwsgi and nginx. Source code is available on github.

You can try it out at explainshell.com. The source code is also available on GitHub.

Another manpage tool we’ve covered is the excellent TLDR Pages and accompanying command line tool.

This appeared first on Laravel News
Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.