4 ms·
I totally love this, it's already incredibly helpful! It's super-functional, and frankly it's very, very nice looking. To Mr. Idan Kamara, the creator of this,
by lelandbatey 13y ago
I totally love this, it's already incredibly helpful! It's super-functional, and frankly it's very, very nice looking. To Mr. Idan Kamara, the creator of this, I have nothing but the highest praise!
Now, I hate to get side-tracked, but for much larger commands, like this one:
ps x -o "%r %c " | grep "someScript.sh" | awk -F' ' '{print $1}' | xargs -I % /bin/kill -TERM -- -%
that has a lot of parts, it can be hard to connect the different options to the various explanations[0], since there are so many lines and they frequently have similar colors and you have to keep scrolling up and down the page. Being able to do something like click on a command/option and have the page jump to the corresponding explanation would be very helpful.
[0] - http://explainshell.com/explain?cmd=ps+x+-o++%22%25r+%25c+%22+|+grep+%22webLauncher.sh%22+|+awk+-F%27+%27+%27{print+%241}%27+|+xargs+-I+%25+%2Fbin%2Fkill+-TERM+--+-%25 http://explainshell.com/explain?cmd=ps+x+-o++%22%25r+%25c+%2...
- etrain 13y agoVery cool - but support for xargs seems to be broken. find . -type f | xargs wc -l http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs+wc+-l http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs...
- un1xl0ser 13y agoI would expect xargs to stop processing arguments strictly after the first non-flag argument. Arguments to xargs do appear to be parsed, example below: http://explainshell.com/explain?cmd=find+%2F+-type+f+-print0+%7C+xargs+-0+grep+heythere http://explainshell.com/explain?cmd=find+%2F+-type+f+-print0...
- etrain 13y agoRight, but in this example it's not telling me what the "grep" is doing. Admittedly xargs is a weird case where the arguments to the program are invoked as a program, but I'd say it shows pretty frequently in these type of "what does this long freaking command do?" situations. Maybe worth adding a special case for.
- RussianCow 13y agoOr you could have the command itself be statically positioned and only have the explanations scroll.
- greytwo 13y agoIs this paralipsis(http://prevaricate.me/?p=451 http://prevaricate.me/?p=451) or meta-paralipsis?
- lelandbatey 13y agoI don't know if I'd term it paralipsis, but I do get what you're saying about the weird contrast between praise followed by criticism. It does seem off, or maybe two faced, when interpreted at face value. The thing is, I do mean both of the sentiments I shared. I do think it's a fabulous and original idea. I also felt that in one particular use case, it's presentation was a little confusing. Because I'm not the best writer/speaker, it probably came across more insensitively than I was hoping for though.
- idank 13y agoHi! Happy to see explainshell on HN again, thanks for all the compliments! I agree about large commands being hard to follow. I tried solving this by adding the ability to navigate between commands. Right now clicking the command takes you to a page that displays that command options, but I can change it to the equivalent of navigating to it with the arrows at the top. There might be something better to do UI wise, though.
- brandall10 13y agoHi, I love this. I bookmarked it and plan to use this often. Possible additions: - Something that users of the service could add commands to and the community could up vote for grading on technical difficulty. - Also a "shell command of the day" type of mailer service would be amazing :)
- idank 13y agoI can scan the access logs for the top explained commands, and show those on the home page (although that will probably only further increase their popularity ;).
- JonnieCache 13y agoWeight them by a power of their age or something like that.
- robryk 13y agoYou can also count how often they are requested from the links on the home page. Granted, the additional popularity will probably cause people to share those more often.
- vram22 13y ago> Also a "shell command of the day" type of mailer service would be amazing :) See: https://mobile.twitter.com/climagic https://mobile.twitter.com/climagic http://www.commandlinefu.com/commands/browse http://www.commandlinefu.com/commands/browse
- 13y ago
- patriciaecastro 13y agomy best friend's aunt makes $86 hourly on the computer. She has been unemployed for 8 months but last month her pay was $12133 just working on the computer for a few hours. you can try here======> jobs25.com
- riquito 13y agoOr you may shorten your command ps -C someScript.sh -o pid= | xargs -I % /bin/kill -TERM -- -% avoiding two pipes is also 1 femtosecond faster, and as an added bonus HN doesn't trigger the dreaded code scrollbars too!