Linux

How to create your own environment variables?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

X=2 for example. But this will persist to new shells. To have it in new shells as well, use export X=2