Podcast
Questions and Answers
How can you make an environment variable available to subshells?
How can you make an environment variable available to subshells?
- Using the local command
- Using the global command
- Using the export command (correct)
- Using the import command
How are environment variables set manually?
How are environment variables set manually?
- Using the equal-sign assignment operator (correct)
- Using the colon assignment operator
- Using the minus-sign assignment operator
- Using the plus-sign assignment operator
What does $HOSTNAME conventionally hold?
What does $HOSTNAME conventionally hold?
- The current user's home directory
- The current user's name
- The computer's IP address
- The computer's name (correct)
How can you refer to an environment variable on a bash command line?
How can you refer to an environment variable on a bash command line?
How can you combine setting an environment variable and making it available to subshells into one line?
How can you combine setting an environment variable and making it available to subshells into one line?
What do environment variables provide the means to pass to programs launched from a shell or a subshell?
What do environment variables provide the means to pass to programs launched from a shell or a subshell?
How is an environment variable set manually?
How is an environment variable set manually?
What command is used to make an environment variable available to subshells?
What command is used to make an environment variable available to subshells?
What is a subshell?
What is a subshell?
What conventionally holds the computer’s name, such as carson.example.com?
What conventionally holds the computer’s name, such as carson.example.com?
Flashcards are hidden until you start studying