Get Your Free Linux Terminal Guide
What Linux Terminal Is and Why People Use It The Linux terminal is a text-based interface that lets you control a computer using typed commands instead of cl...
What Linux Terminal Is and Why People Use It
The Linux terminal is a text-based interface that lets you control a computer using typed commands instead of clicking buttons and icons. It's also called a command line or shell. When you open the terminal, you see a blank screen with a blinking cursor where you type instructions that tell the computer what to do.
Linux is an operating system—the software that runs on computers, just like Windows or macOS. The terminal is one way to interact with Linux. Many people think of the terminal as intimidating because it looks different from familiar graphical interfaces. However, the terminal is simply another way to communicate with your computer.
People in many professions use Linux terminals regularly. Software developers use terminals to write and test code. System administrators use terminals to manage computer networks and servers. Data analysts use terminals to process large amounts of information. Cybersecurity professionals use terminals to protect systems from attacks. Even hobbyists and students use terminals to learn how computers work and to customize their systems.
According to the 2023 Stack Overflow Developer Survey, approximately 49% of professional developers use Linux regularly, and most interact with it through the terminal. This demonstrates how widespread terminal skills are in technology careers. The terminal is powerful because it lets experienced users complete tasks much faster than using a mouse and clicking through menus. A single typed command can perform complex operations that would take many mouse clicks to accomplish through a graphical interface.
Understanding the basics of the Linux terminal opens doors to learning programming, managing your own computer systems, and exploring how technology works behind the scenes. Many universities and coding schools now teach terminal skills because employers value these abilities in technology professionals.
Practical Takeaway: The Linux terminal is a practical tool used across many technology fields. Learning basic terminal skills can complement your existing computer knowledge and introduce you to how operating systems function at a deeper level.
Basic Commands to Get Started
When you first open a Linux terminal, you might see something like this: user@computer:~$. This is called the command prompt. It tells you the terminal is ready for input. After the dollar sign, you type a command and press Enter to execute it.
One of the most fundamental commands is pwd, which stands for "print working directory." This command shows you which folder you're currently located in on the computer. When you type pwd and press Enter, the terminal displays the path to your current location, like /home/username.
Another essential command is ls, which lists the files and folders in your current directory. When you type ls, you see the names of everything in that folder. This is similar to opening a folder in File Explorer on Windows or Finder on Mac, except you see the results as text instead of icons.
The cd command lets you change directories, or move between folders. For example, if you see a folder named "Documents" when you use ls, you can type cd Documents to move into that folder. Then you can use ls again to see what's inside Documents. You can also type cd .. to move up one level to the parent folder.
Creating and viewing files involves other simple commands. The mkdir command creates a new folder. For instance, mkdir MyProject creates a folder named MyProject in your current location. The cat command displays the contents of a text file. If you type cat myfile.txt, the terminal shows you everything written in that file.
These five commands—pwd, ls, cd, mkdir, and cat—form the foundation for navigating and exploring a Linux system. Most users learn these first because they're safe to practice with and don't make permanent changes unless you specifically use commands designed to delete things.
Practical Takeaway: Start by practicing navigation commands. Open a terminal and try pwd to see where you are, ls to see what folders exist, and cd to move between them. Spend time getting comfortable with these basic movements before learning more complex commands.
Understanding File Permissions and Ownership
In Linux, every file and folder has permissions that control who can read, write, or execute it. This security feature matters whether you're working on a personal computer or a shared server. When you list files using ls -l, you see detailed information including permissions displayed as a series of letters and dashes, like -rw-r--r--.
These permission codes break down into three categories: the owner of the file, the group that owns the file, and everyone else. Each category has three possible permissions: read (r), write (w), and execute (x). Read means you can view the contents. Write means you can modify or delete it. Execute means you can run it as a program.
When you see -rw-r--r--, the first dash indicates it's a regular file (not a folder). The next three characters (rw-) show the owner's permissions: read and write allowed, but not execute. The next three characters (r--) show the group's permissions: read only. The final three characters (r--) show everyone else's permissions: also read only.
The chmod command changes permissions. For example, chmod +x script.sh adds execute permission to a file named script.sh, letting you run it as a program. You can also use numbers: chmod 755 myfolder sets specific permissions using a three-digit code where 7 means read, write, and execute; 5 means read and execute; and 5 means read and execute again.
Understanding permissions is important for security. If you don't want others reading sensitive files, you can restrict permissions so only you can access them. The chown command changes ownership of files, though typically only the original owner or an administrator can do this. On personal computers, you might not use these commands often, but they become essential if you ever manage shared systems or work with development teams.
Many security breaches happen because files are left with overly open permissions. Learning about Linux permissions helps you understand why security professionals restrict access to important files and folders. This knowledge transfers to understanding security on any system.
Practical Takeaway: Review file permissions on your own computer by typing ls -l in your home directory. Look at the permission codes and try to interpret them using the three-category system. This foundational knowledge will help you understand security concepts across all technology platforms.
Installing Software and Managing Packages
In Linux, you don't always download software from websites the way you might on Windows or Mac. Instead, many Linux systems use package managers—tools that find, retrieve, and install software automatically. Different Linux versions use different package managers. Ubuntu and Debian-based systems use apt. Red Hat and Fedora-based systems use yum or dnf. Learning about package managers teaches you how software organization works on modern systems.
When you want to install a program, you typically type a command like sudo apt install programname. The word sudo means "superuser do," giving you temporary administrator powers to make system changes. The package manager then searches its database for that program, downloads it, and installs it automatically, including any related software it depends on.
Before installing anything new, it's good practice to update your package manager's information about what software is available. The command sudo apt update refreshes this information. Then sudo apt upgrade updates all your currently installed programs to their newest versions. This keeps your system secure because software updates often fix security problems.
The package manager database contains thousands of programs you can install. Some popular examples include Git (for version control and coding), Python (a programming language), and Vim (a text editor). When you install programs through a package manager, they're integrated into your system properly, and future updates are handled automatically.
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides →