Session and utilities
The export command
Defines environment variables: named values your programs use.
Syntax
export NOMBRE=valorCopy-ready examples
$ export curso=linuxDefine a variable$ echo $cursoRead it$ exportSee all the defined onesYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Without export, the variable only exists for that command, not for the programs you launch.
FAQ
How do I read a variable?
With the dollar sign in front: echo $NAME.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course