command: compgen
purpose: it is a built-in command and it will show all available commands,
              aliases and functions in our systems
syntax: compgen [option]

example:

1. To list all available commands in your system
    $compgen -c
2. To count the commands available in the system
    $compgen -c | wc -l
3. To list the available aliases
    $compgen -a
4. To show all the bash built-in commands
    $compgen -b
5. To show all the bash keywords
    $compgen -k
6.  To show available functions
    $compgen -A

regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to