ยง2024-10-02
- Default Environment Variables when you start uip a shell
- Using env Command
The env command lists all the environment variables currently defined in your shell session.
- Using printenv Command
The printenv command also displays the environment variables.
- Using set Command
The set command shows both environment variables and shell functions. It lists all the variables (including local and global) currently defined in the shell.
- Using declare Command
You can use the declare command with the -p option to display all variables, including environment variables.
- color
$ echo -e "\033[0;33mThis text will be yellow\033[0m"
echo -e "\033[0;33mThis text will be yellow" <-- without restoring
echo "This is another line of text to test if it's still yellow"