Table of contents
- What is the Terminal?
- Why Should You Use the Terminal?
- How to Open the Terminal
- What Does the Terminal Look Like?
- A Simple Terminal Command
- Letâs try a basic command to check your Linux version. Follow these steps:
- Breaking It Down
- Why Should You Learn the Terminal?
- Fun Analogy
- Pro Tips for Beginners
- Homework
Hello, Queens of tech! đ Today, weâre diving into a super cool tool that every developer needs to knowâthe Terminal. Donât worry if youâve never heard of it or think itâs too âtechy.â By the end of this post, youâll feel like a Terminal Queen! âš
What is the Terminal?
The Terminal is like a magic wand for your computer. It lets you talk directly to your Operating System (OS) by typing commands instead of clicking buttons. Think of it as texting your computer to make it do things!
Why Should You Use the Terminal?
Itâs powerful: You can do tasks faster than using the mouse and menus.
Itâs essential for coding: Installing tools, running programs, and testing your code often happens here.
Itâs fun: Once you get the hang of it, youâll feel like a hacker in a movie. đ¶ïžđ»
How to Open the Terminal
Opening the Terminal depends on your OS. Since weâre focusing on Linux here, letâs start with that:
For Linux Users
Shortcut: Press Ctrl + Alt + T on your keyboard.
From the menu:
Look for an app called Terminal or Console in your applications menu.
Click it, and voilĂ âthe Terminal window opens!
*This is my Terminal, powered by Garuda Linux and the fish shell. đ It might look advanced, but donât worryâyouâre on your way to creating your own epic setup too! Just keep coding! đ„
What Does the Terminal Look Like?
Itâs usually a black or white window with a blinking cursor, waiting for you to type something.
Donât be intimidatedâitâs not judging you; itâs just patiently waiting! đ
A Simple Terminal Command
Letâs explore a basic command to check your Windows version. Follow these steps:
Step 1: Open the Command Prompt
We are going to move our mouse pointer to the bottom left of the screen as seen in the picture and click on the windows button Type cmd and press Enter. This opens the Command Prompt.
Step 2: Type the Command
Type the following command into the Command Prompt:
âsysteminfoâ
(Exactly as shown, no changes.)
Step 3: Press Enter
After typing the command, press Enter on your keyboard. Youâll see detailed system information, including your Windows version
Letâs try a basic command to check your Linux version. Follow these steps:
Step 1: Open the Terminal
Use the shortcut (Ctrl + Alt + T) or find it in the menu as explained above.
Step 2: Type the Command
Type the following in the Terminal:
uname -a
(Donât worry about what it means yetâjust type it exactly as shown.)
Step 3: Press Enter
Hit Enter on your keyboard, and youâll see something like this:
Linux my-computer 5.15.0-79-generic #86~20.04.1-Ubuntu SMP Fri Jul 7 15:04:22 UTC 2023 x86_64 GNU/Linux
Breaking It Down
Linux: This tells you that your OS is Linux.
5.15.0-79-generic: This is the version of the Linux kernel (basically, the engine running your OS).
Ubuntu: This is the Linux distribution (distro) youâre using.
Why Should You Learn the Terminal?
Itâs a universal tool: Almost every developer uses it, no matter the programming language or framework.
Youâll need it to:
Install tools like Node.js and VS Code (Read my article on Setting Up Your Coding Wonderland đ ïž
Run commands for your projects.
Debug your code like a pro.
Fun Analogy
Think of the Terminal as a secret diary where you can write commands to your computer, and it listens! But instead of keeping secrets, it helps you get things done faster.
Pro Tips for Beginners
Donât panic: If something doesnât work, check what you typed. The Terminal is case-sensitive!
What Does "Case-Sensitive" Mean?
Being case-sensitive means that the Terminal treats uppercase (capital) letters and lowercase (small) letters as completely different characters.
For example:
File.txt
is not the same asfile.txt
.myCommand
is not the same asMyCommand
orMYCOMMAND
.
Why Does This Matter?
When you type commands in the Terminal, they need to match exactlyâright down to the capitalization. If you type something like:
Ls
instead of:
ls
Youâll get an error because the Terminal doesnât recognize Ls
as a valid command.
How to Avoid Case-Sensitive Errors
Pay attention to capitalization: Always double-check what you type.
Copy-paste when in doubt: If youâre following a tutorial, copy the commands to avoid typos.
Learn the common commands: Over time, commands like
ls
,cd
, andmkdir
will become second nature to you.
Quick Analogy
Think of case sensitivity like entering a password:
- If your password is
Hello123
and you typehello123
, it wonât work because the uppercase "H" is different from the lowercase "h."
In the same way, the Terminal is picky about the exact spelling and capitalization of commands and filenames.
Use Tab: If youâre typing a long file or folder name, press the Tab key to autocomplete it.
Ask for help: Type
man <command>
(e.g.,man uname
) to get a manual explaining what a command does.
Homework
Open your Terminal and try the
uname -a
command.Screenshot your results and share them with your learning group or community.
Look up one more Terminal command to tryâstart exploring!
The Terminal may look scary at first (It felt that way for me too), but once you start using it, youâll realize itâs your coding BFF. Stay curious, and letâs unlock more magic together in this journey! đ