compgen

 

Get help on Linux compgen Command.

 

   Linux compgen command is use to display possible completions depending on the options.  The Linux compgen command is one of bash shell built in command.  The command example below show how to get help on Linux compgen command using shell command, this help show information on how to use the Linux compgen command, the compgen command options and the arguments that can be use with Linux compgen command.

 

Get Linux compgen command help

 

  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for compgen command using the manpage format.

compgen linux command

[linux@fedora11 ~]$ help -m compgen

NAME

    compgen - Display possible completions depending on the options.

 

SYNOPSIS

    compgen [-abcdefgjksuv] [-o option]  [-A action] [-G globpat] [-W wordlist]  [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]

 

DESCRIPTION

    Display possible completions depending on the options.

 

    Intended to be used from within a shell function generating possible

    completions.  If the optional WORD argument is supplied, matches against

    WORD are generated.

 

    Exit Status:

    Returns success unless an invalid option is supplied or an error occurs.

 

SEE ALSO

    bash(1)

 

IMPLEMENTATION

    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.