0

When I use set on the shell prompt, I can see the environment variables, shell variables and so on.

I know set shows user environment variables and shell vars. But, what is related to many functions which is visible to me when I use set command? What are these functions for? These functions are made by shell script language. So, I think these are work for bash shell. But, not actually, so I want to hear something about these things.

closed as too broad by Rui F Ribeiro, Scott, Jakuje, Anthon, jimmij Feb 19 '16 at 20:18

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

If the functions are unknown to you, then they probably come from system-wide shell initialization files such as /etc/bash.bashrc or /etc/bash_completion.

Functions whose names start with _ are most likely (conventionally) used for autocompletion.

Not the answer you're looking for? Browse other questions tagged or ask your own question.