$
Linux Practice
Practice
Tutorials
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
env & export (Environment Variables)
Reset Lesson
Learn to view and set environment variables using env and export.
Step 1
Display all environment variables.
Type: env
env
Step 2
Print the value of the HOME variable using echo.
Step 3
Set a new environment variable MY_VAR with value "hello".
Step 4
Verify your new variable appears in the environment.
Step 5
Set PROJECT_DIR to a useful path for quick reference.