Nguyễn Tuấn Dương
New member
How do I export a variable in Linux?
Answer
Export Variables
Answer
Export Variables
- vech=Bus. Display the value of a variable with echo, enter:
- echo “$vech” Now, start a new shell instance, enter:
- bash. Now, display back the value of a variable vech with echo, enter:
- echo $vech. …
- export backup=”/nas10/mysql” echo “Backup dir $backup” bash echo “Backup dir $backup” …
- export -p.