Recap - Custom Environment
Part of the Fundamentals section of Coddy's Terminal journey — lesson 65 of 82.
Challenge
EasyCombine your environment variable skills to complete this multi-step challenge.
First, export a variable called APP_NAME with the value MyTerminalApp.
Next, export a variable called APP_VERSION with the value 1.0.
Finally, use echo to display both variables in a single line with the format:
MyTerminalApp v1.0You'll need to combine both variables in your echo command, adding the letter v before the version number.
Hint: After exporting both variables, use
echo "$APP_NAME v$APP_VERSION"to display them together.
Note: The live terminal preview may show only partial output (e.g., just
v) if variables don't persist between individually-entered commands. This is expected behavior in the preview. Enter all three commands and click Submit — the correct outputMyTerminalApp v1.0will be evaluated and the challenge will be accepted.
Try it yourself
All lessons in Fundamentals
4Directories
Create A DirectoryCopy A DirectoryMove And Rename A DirectoryDelete A DirectoryRecap - Directory Operations7File Content
Head And TailWord CountSort CommandUnique CommandGrep BasicsGrep With FlagsRecap - Text Detective2Navigation
Print Working DirectoryList FilesChange DirectoryAbsolute vs Relative PathsHome And Root DirectoryRecap - Find Your Way8Redirection
Standard OutputOverwrite To A FileAppend To A FileStandard InputStandard ErrorRecap - Log Builder6Wildcards And Patterns
The Star WildcardThe Question Mark WildcardBracket WildcardsCombining WildcardsRecap - Selective Operations9Piping
What Is A PipeChaining Two CommandsChaining Multiple CommandsPipe With GrepRecap - Data Pipeline12Environment
Environment VariablesView All VariablesThe PATH VariableSetting A VariableExport A VariableThe Profile FileRecap - Custom Environment