Nhật Hương
Member
How do you display the value of a variable in Linux?
Answer
The most used command to displays the environment variables is
printenv. If the name of the variable is passed as an argument to the command, only the value of that variable is displayed. If no argument is specified, printenv prints a list of all environment variables, one variable per line.
Answer
The most used command to displays the environment variables is
printenv. If the name of the variable is passed as an argument to the command, only the value of that variable is displayed. If no argument is specified, printenv prints a list of all environment variables, one variable per line.