export - It is used to mark variables and functions to be passed to child processes


To display all exported variables
$ export

To view all exported variables on the current shell
$ export -p

The variable ‘community’ has been assigned the value ‘ilugc’
$ community=ilugc
$ export community
check with
$ printenv community

To export shell function
$ name() { echo "ilugc"; }
$ export -f name
$ bash
$ name

 

regards,
T.Dhanasekar