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
whoami
date
echo "Hello, Linux!"
clear
historyYour 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.