AI Hints
Home›Linux Tutorial›The Terminal
Linux · Lesson 6 of 120

Your First Commands

Who, where and when.

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

Let's type some real commands. We'll start with the simplest ones there are. Each one asks the computer a small question, and prints the answer.

Your First Commands
From the video: Your First Commands
  • Real commands
  • The simplest ones
  • Small questions, short answers

Who, where, and when

First, who am I. Type who am I, as one word, and Linux prints your username. Our user is called Sam. Next, hostname prints the computer's name, laptop. And date prints the date and time. Three questions, three answers.

Terminal
whoami
sam
hostname
laptop
date
Mon Jan  5 09:00:00 UTC 2026

A friendly calendar

Here's a fun one. Cal prints a calendar of this month, with today in it. Commands are just short names for small programs. You type the name, and the program runs.

Terminal
cal
    January 2026
Su Mo Tu We Th Fr Sa
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Summary

Who am I, hostname, date, and cal. You just ran your first Linux commands. Next, let's understand the prompt, the text before every command.

Key takeaways
  • whoami
  • hostname
  • date and cal
Next up: Reading the Prompt — who and where you are