Basic Linux Command Example: 


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


    compgen - Display possible completions depending on the options.



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



    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.






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

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <>


[linux@fedora11 ~]$




Keywords: compgen, compgen command, linux compgen command, compgen linux command, compgen help, help compgen, command compgen help, help compgen command