Write a command-line and open its explainshell.com explanation in a browser automatically.
Works on Linux, macOS, and Windows in WSL2.
- Install
jq
. You cansudo apt-get install jq
orbrew install jq
. - Copy
main.sh
into some directory in yourPATH
, e.g. probably~/.local/bin
or/usr/local/bin
or something. - Give yourself the permissions to run the script:
chmod u+x main.sh
- Name the script something nice, like
wtf
- Run it:
wtf tar -xzvf foo.tar.gz