[LINUX] What are environment variables?

It's a very important foundation, but I didn't understand it so much, so I investigated it. Explanation from LINUX

Built-in commands

Commands built into the shell itself

External command

Commands that exist on the file system as executable files Cannot refer to the value of the set shell variable Environment variables are set when you want to use the value of a variable from an external command.

Environment variable PATH

It is called a command search path, and the command can be executed simply by entering the command name (without specifying the full path) because the path where the command exists is set in this variable. If you execute a command with the path omitted, the paths defined in this variable are searched in order, and when a matching command is found, that command is executed.

You can refer to the environment variable currently set in echo $ PATH

Recommended Posts

What are environment variables?
Shell variables, environment variables
[Python] Get environment variables
Environment variables when using Tkinter
Handle Go environment variables (viper)
Handle environment variables in Python
HTTP environment variables in Flask
Set environment variables with lambda-uploader
Flow in which malloc parameters are set from environment variables
[Python] What are @classmethods and decorators?
(Beginner) What are cores and threads?
Try giving AWS Lambda environment variables?
Read system environment variables with python-Part 1
Read system environment variables with python-Part 2
How to access environment variables in Python
About the development environment you are using
To reference environment variables in Python in Blender
What are go mod, go get and go mod vendors?
What are Linux POSIX options and GNU options?