Autor: Olaf Meeuwissen Data: A: karl CC: dng Assumpte: Re: [DNG] type
Hi,
karl@??? writes:
> David Hoppenbrouwers:
>> On 13/02/2025 19:20, Hendrik Boom wrote:
>> > So there are two separate command documentation systems -- help and man.
>>
>> At least three actually:
>> - help (for the shell specifically)
>> - man
>> - info (I've never used this one, though it seems useful for GCC
>> documentation)
>
> help isn't a documentation system, it is a buildin of the bash shell,
> it is similar to the --help command line option for the programs that
> have that.
Thanks for mentioned that `help` is a bash'ism.
olaf@wanderer ~ % help type
zsh: command not found: help
> [...]
>
> Others have pdfs, web pages and other ways of providing knowledge,
> and yes there are books also :)
I find myself using
cmd -h
cmd --help
cmd help
for a growing collection of cmd's, e.g. git, and using whatever they
document to get more help on any subcommands they might support.