Bash Environment
Bash is a programing language.
Bash is an sh-compatible shell that allows us to run complex commands and perform different tasks from a terminal window.
we can directly run our command in terminal or save in file with .sh and then run it.
Terminal
Environment Variable
When opening a terminal window, a new Bash process, which has its own environment variables, is initialized.
These variables are a form of global storage for various settings inherited by any applications that are run during that terminal session.
One of the most commonly-referenced environment variables is PATH, which is a colon-separated list of directory paths that Bash will search through whenever a command is run without a full path.
βββ(rootπrio)-[~]
ββ# echo $PATH
/root/gems/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/snap/bin:/snap/bin/spotify
Last updated