How do I set an environment variable on the command line and have it appear in commands?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=ktJ9KF6h0U0



Duration: 6:00
2 views
0


How do I set an environment variable on the command line and have it appear in commands?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/1138/ashleysmithgpu)ashleysmithgpu |
(unix.stackexchange.com/users/22886/peterph)peterph |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
(unix.stackexchange.com/users/269386/oliver)Oliver |
(unix.stackexchange.com/users/3979/pradeepchhetri)pradeepchhetri |
(unix.stackexchange.com/users/439686/pourko)Pourko |
A special thanks goes out to the (https://unix.stackexchange.com/questions/56444/how-do-i-set-an-environment-variable-on-the-command-line-and-have-it-appear-in-c)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

shell echo environment-variables







Tags:
shell
echo
environment-variables