How do I list the functions defined in my shell? [duplicate] How do I list the functions defined in my shell? [duplicate] shell shell

How do I list the functions defined in my shell? [duplicate]


declare -F

Function names and definitions may be listed with the -f option to the declare builtin command (see Bash Builtins). The -F option to declare will list the function names only (and optionally the source file and line number).

Bash Reference Manual


Assuming bash shell:

typeset -f

will list the functions.

typeset -F

will list just the function names.


declare -F

will give you the names of all functions

type function_name

will give you the source for a particular function