AI Hints
Home›Linux Tutorial›Help and Practice
Linux · Lesson 12 of 120

Practice: First Commands

A warm up.

⏱ 2 min read▶ Video at 12:49🎓 Free
Watch this lesson in the Linux courseWatch on YouTube ↗Full Linux course

Time for a short warm up. You'll see a small task, pause the video, and try it yourself. Then we'll do it together. Getting your hands on the keyboard is the fastest way to learn.

Practice: First Commands
From the video: Practice: First Commands
  • A small task
  • Pause and try it
  • Then we do it together

Your tasks

Here are three small tasks. First, print your username. Second, print the message, I am learning Linux, keeping the words together. Third, print the date. Pause now, and try all three.

Task 1print your username
Task 2print: I am learning Linux
Task 3print today's date
Tippause the video now

The answers

Here are the answers. Who am I prints the username. Echo with the message in quotes prints the sentence. And date prints the date and time. If yours worked, well done. You're already using the terminal.

Terminal
whoami
sam
echo "I am learning Linux"
I am learning Linux
date
Mon Jan  5 09:00:00 UTC 2026

Summary

You can now run commands, read the prompt, and get help. Next, we start the most important part of Linux. Files and folders.

Key takeaways
  • whoami
  • echo with quotes
  • date
Next up: The File System Tree — how Linux stores files