Where are bash functions stored?

Where are bash functions stored?
Answer
Typically bash functions are permanently stored in a bash start-up script.
  1. System-wide start-up scripts: /etc/profile for login shells, and /etc/bashrc for interactive shells.
  2. User define start-up scripts: ~/. …
  3. More information on interactive/login shells can be found in the bash man page in the INVOCATION section.
 

Tìm kiếm

Back
Top