Which Command Is Used to Display Variable Values in Unix?
Contents Explanation: Set Command Is Used to Display All the Variables Available in the Current Shell. Set Is a Built-in Command. Env Is an External Command...
Contents
Explanation: set command is used to display all the variables available in the current shell. set is a built-in command. env is an external command and runs in a child process. It thus displays only those variables that are inherited from its parent, the shell.
Which command is used to display variable values?
Summary:
| Command | Description |
|---|---|
| echo $VARIABLE | To display value of a variable |
| env | Displays all environment variables |
| VARIABLE_NAME= variable_value | Create a new variable |
| unset | Remove a variable |
Must Read
Which command is used to display variable values in Linux?
The most used command to displays the environment variables is printenv .