Bash/SH/KSH: set Command Display Environment Variables and Functions

Fig. 01: Bash/SH/KSH: set Command Display Environment Variables and Functions

Fig. 01: Bash/SH/KSH: set Command Display Environment Variables and Functions

To display or print the current values of all your environment variables and functions in Unix and Linux, for the sh, ksh, or bash shell:

set
set | grep -i --color home
set | grep -i --color user
set | more
set | less

Examples and usage: Unix/ Linux: Print Environment Variables Command

Leave a Comment