4 ms·
It would be really cool if shell lines included some sort of hyper-linking to man pages based on the grammar of each shell command and its arguments. Have one l
by azanar 18y ago
It would be really cool if shell lines included some sort of hyper-linking to man pages based on the grammar of each shell command and its arguments. Have one line that is the hyperlinked command, and another than has the command in a textfield. So rather than just a site of semi-magical incantations, it can be a catalyst for exploratory learning.
It is a little-pie-in-the-sky, I admit. The top command when I visited was `sudo`. What argument `sudo` takes depends upon the shell the user is using to execute `sudo`. Perhaps this could be a preference set somewhere, along with the OS being used. And maybe have a sister site where people contribute shell command grammars in some standardized syntax. I wonder how many people would be willing to provide those, though. Hmm.
This wasn't mentioned in the prior submission of this site, and it didn't occur to me until seeing it again. Just thinking out loud.
- silentbicycle 18y agoI think that's a great idea, though it's worth noting that the command line options to commands can be subtly different between Linux and BSD (and sometimes different Linux distros). It helps when people use the long options (--quiet rather than -q), when available; they're usually easier to translate.