How to use Linux to clear Bash environment variables with commands

  
                

On Linux systems, the env command can temporarily clear Bash environment variables without deleting or uninstalling them. Of course, the Bash command in Linux is not only env, this article will introduce how Linux uses the command to clear the Bash environment variable.

How to display the current environment?

Open the terminal application and enter one of the following commands:

1.printenv

or

1.env

Example:
Fig.01: Unix/Linux: List all environment variables

Number of statistical environment variables

Enter the following command:

1.env

Copyright © Windows knowledge All Rights Reserved