Thuta Learning
BasicDevOps & Toolsbeginner

Your First Commands

Relax. We'll talk through this in plain words — no textbook voice.

What you'll walk away with

  • Understand your first commands, without the intimidation
  • Get comfortable trying out commands yourself in the terminal
  • See how these commands are actually useful on a real server or project

Let's think about it this way for a second

When practicing the command line, it's best to start with the safest possible commands. whoami tells you who you are. date shows the current date and time. echo prints back whatever text you give it — it'll be one of the most commonly used commands when you start writing scripts, for displaying messages. clear cleans up the screen (Ctrl+L does the same thing). history shows you the commands you've typed before.

Let's connect this to a real-world scenario

These commands are completely harmless — none of them can delete anything, so there's zero risk. For anyone who's been afraid of the terminal, think of this stage as 'dipping your toes in at the edge of the pool' — you're not going to drown, so go ahead and try it out. Running history | grep cd filters the history down to just the commands that contain cd (we'll cover pipes in detail in a later chapter).

Let's try it together in the terminal

bash
whoami
date
echo "Hello, Linux!"
clear
history
You should see
Your username, the current date/time, and a 'Hello, Linux!' message each appear on their own line in the terminal.

5-minute try-it

Use echo to print a message combining your name with a word of your choice.

A quick word of caution

This chapter is harmless, but later chapters will include commands that can delete things — think of this one as a free warm-up.

Easy traps

  • Typing echo Hello World without quotes (") and hitting an error — wrap it in quotes when there are spaces
  • Mistaking history output for new commands and retyping/copying it by mistake

Now try it yourself

Use echo to print a message combining your name with a word of your choice.

You'll know it worked when: Your username, the current date/time, and a 'Hello, Linux!' message each appear on their own line in the terminal.