Your First Command
Part of the Fundamentals section of Coddy's Terminal journey — lesson 2 of 82.
Now that you know what the terminal and shell are, let's run your first real command!
The echo command is one of the simplest and most useful terminal commands. It prints text to the screen:
echo "Hello World!"When you press Enter, the shell reads your command, executes it, and displays the output:
Hello World!A terminal command usually follows this structure:
command "argument"- command — the program you want to run (e.g.,
echo) - argument — the input you pass to the command (e.g.,
"Hello World!")
Note: The terminal is case sensitive. For example:
echo "Hello World!"
echo "hello world!"These produce different outputs (notice the capital letters in the first line).
Challenge
BeginnerUse the echo command to print Hello World! to the terminal.
Remember that the output is case sensitive. Make sure your text matches exactly.
Use the echo command followed by your text in double quotes.
Cheat sheet
The echo command prints text to the screen:
echo "Hello World!"Terminal command structure:
command "argument"- command — the program to run
- argument — the input passed to the command
Note: The terminal is case sensitive.
Try it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
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 Pipeline