Tag Info

New answers tagged

2

Options for compgen command are the same as complete, except -p and -r. From compgen man page: compgen compgen [option] [word] Generate possible completion matches for word according to the options, which may be any option accepted by the complete builtin with the exception of -p and -r, and write the matches to the standard output For options ...


2

The following shell snippet installs all FOO-doc packages such that FOO is already installed: apt-get install $(comm -12 <(dpkg --get-selections | awk '$2 == "install" {print $1 "-doc"}') <(apt-cache pkgnames | sort) ) To make this a bit cleaner by omitting already-installed -doc packages: installed_packages=$(dpkg ...


1

Assuming you are using Ubuntu, apt-get install linux-manual-3.2 or similar (pick the correct version). There is also another documentation package apt-get install linux-doc but this is html.


1

The content is parsed directly (see also this) from the source .c files1: In order to provide embedded, 'C' friendly, easy to maintain, but consistent and extractable documentation of the functions and data structures in the Linux kernel, the Linux kernel has adopted a consistent style for documenting functions and their parameters, and ...


2

Note GNU coreutils man pages are generated from $cmd --help Also note that bash builtins at least don't support --help. There you need to use help umask for example. Now POSIX allows, and ksh at least uses umask --help. It was proposed recently that bash might also accept this syntax


4

You refer to the GNU tools in your example. These are available on Linux, and many other platforms, and are somewhat unusual in terms of documentation. The GNU tools, actually seem to have three levels of increasingly detailed interactive reference: --help as a common command option - a short usage summary, man - the classic man pages, a "quick ...


4

Commercial unices generally present usage information only in man pages. Having the command itself display usage information is not a traditional Unix feature (except for displaying the list of supported options, but without any explanation, on a usage error). POSIX and its relatives don't talk about anything like this. Having a --help option that displays ...



Top 50 recent answers are included