Step -1
Need to vi (Editor) to .bashrc
vi .bashrc
Step -2
Add the environment variable which we want to add like
export my_path=/home/user
Now save and exit
Esc
:wq!
Now update the .bashrc
. .bashrc enter
Now check echo $my_path
All Steps -
1. vi .bashrc
2. export my_path=/home/user
3. Esc :wq!
4. . .bashrc
5. echo $my_path
Thanks
DB Tech Solutions
Need to vi (Editor) to .bashrc
vi .bashrc
Step -2
Add the environment variable which we want to add like
export my_path=/home/user
Now save and exit
Esc
:wq!
Now update the .bashrc
. .bashrc enter
Now check echo $my_path
All Steps -
1. vi .bashrc
2. export my_path=/home/user
3. Esc :wq!
4. . .bashrc
5. echo $my_path
Thanks
DB Tech Solutions




