How Do I Export a Display Variable in Linux?
Contents How Do I Export a Variable in Linux? for Example, Create the Variable Called Vech, and Give It a Value “Bus”: Vech=Bus. Display the Value of a...
Contents
How do I export a variable in Linux?
For example, Create the variable called vech, and give it a value “Bus”:
- vech=Bus. Display the value of a variable with echo, enter:
- echo “$vech” Now, start a new shell instance, enter:
- bash. …
- echo $vech. …
- export backup=”/nas10/mysql” echo “Backup dir $backup” bash echo “Backup dir $backup” …
- export -p.
29 мар. 2016 г.
Must Read
What is the display variable in Linux?
The DISPLAY variable is used by X11 to identify your display (and keyboard and mouse). Usually it’ll be :0 on a desktop PC, referring to the primary monitor, etc. If you’re using SSH with X forwarding ( ssh -X otherhost ), then it’ll be set to something like localhost:10.0 .