1.

Explain working of env command.

Answer»

“env” command is basically a shell command that is used to print a list of current environmental variables. Here, “env” stands for the environment. It can also run another process in another environment without any modification of the current environment. It ALLOWS you to run programs in a modified environment. It is generally used by shell SCRIPTS to launch the correct interpreter. It can also be useful for checking if wrong environment variables prevent the APPLICATION from starting during TROUBLESHOOTING.  

Example: 

$env
PHYTHON_PIP_VERSION=9.0L1
HOME=/root
DB_NAME=test
PATH=/usr/local/bin:/usr/local/sbin
LAND=C.UTF=8
PYTHON_VERSION=3.4.6
PWD=/
DB_URI=mongodb://database:27017/test



Discussion

No Comment Found