Learn About Linux Operating System Basics
What Is Linux and Why Does It Matter Linux is a free operating system that runs on computers, servers, smartphones, and other devices. An operating system is...
What Is Linux and Why Does It Matter
Linux is a free operating system that runs on computers, servers, smartphones, and other devices. An operating system is the software that manages all the hardware in your device and lets other programs run on top of it. Think of it like the manager of a concert venue—it directs traffic, makes sure everything works together, and allows performers (your programs) to do their jobs.
Created in 1991 by Linus Torvalds, a Finnish programmer, Linux has grown into one of the most important pieces of technology in the world. Today, Linux powers an estimated 96% of the world's servers, runs on most smartphones through Android, and operates countless devices you use every day without realizing it. Your banking apps, Netflix, Gmail, and the systems that manage electricity grids often run on Linux.
What makes Linux special is that it's open-source, meaning anyone can view its code, study how it works, and make changes. This transparency has helped it become very secure and reliable. Thousands of programmers worldwide contribute to improving it constantly. Unlike some operating systems that one company owns and controls, Linux belongs to the community.
Linux comes in different versions called distributions. Popular ones include Ubuntu, Fedora, CentOS, and Debian. Each distribution packages Linux with different tools and pre-installed programs, but they all share the same Linux core. This means once you understand Linux basics, you can work with many different versions.
Learning about Linux matters whether you work in technology or not. If you use computers for work, understanding how Linux operates helps you troubleshoot problems, protect your data, and make better decisions about which tools to use. Many jobs in technology, data science, cybersecurity, and web development require Linux knowledge. Even if you don't plan a tech career, understanding how operating systems work helps you understand modern technology better.
Practical Takeaway: Linux is free, secure software that powers much of the internet and many devices you use daily. Understanding Linux basics gives you insight into how modern technology works and can open career opportunities.
Understanding the Linux File System and Structure
The Linux file system is like a filing cabinet with drawers, folders, and subfolders. Everything in Linux—programs, settings, documents, hardware devices—is organized as files. This organization starts with the root directory, represented by a forward slash (/). From there, everything branches out into a tree structure, with folders containing subfolders containing more files.
The root directory contains several important folders that serve specific purposes. The /home folder stores user files and documents, similar to "My Documents" on other systems. The /etc folder contains configuration files that control how the system behaves. The /usr folder holds programs and libraries that users can run. The /bin folder contains essential commands and programs needed to run the system. The /var folder stores variable data like log files that track what the system has done. The /tmp folder is temporary storage that gets cleared out regularly. Understanding these standard folders helps you navigate any Linux system because they follow the same pattern across all distributions.
Linux uses a hierarchical permission system to control who can read, write, or run files. Each file has an owner (usually the person who created it), a group (a collection of users), and permissions for all other users. Permissions show three pieces of information: read access (can you see the file), write access (can you change it), and execute access (can you run it). For example, a document might be readable and writable by its owner but only readable by everyone else. System files are often protected so only the administrator (called "root") can modify them, preventing accidental damage.
The path to a file describes exactly where it lives in the system. An absolute path starts from the root (/) and shows every folder you pass through. For example, /home/sarah/Documents/report.txt shows that the file "report.txt" is in Sarah's Documents folder, which is in the home folder, which is in the root. A relative path shows the location from where you currently are, so if you're already in Sarah's home folder, you could just say Documents/report.txt to find the same file.
Linux treats most things as files, even devices and system settings. Your printer, hard drive, and network connection are all represented as files you can interact with. This "everything is a file" philosophy makes the system consistent and powerful—the same tools that manage documents can also manage devices and settings.
Practical Takeaway: Learn the standard folder structure (/home, /etc, /usr, /bin) and understand that everything in Linux is organized as files with specific permissions. This knowledge lets you navigate any Linux system and find what you need.
Working With the Command Line and Basic Commands
The command line, also called the terminal or shell, is how you give instructions directly to Linux. While many Linux systems have a graphical interface with windows and buttons similar to Windows or Mac, the command line is more powerful and direct. You type text commands, press Enter, and the system responds. This might seem intimidating at first, but it becomes natural quickly and gives you much more control over your system.
Learning a few essential commands opens up enormous possibilities. The "ls" command lists files in a folder, letting you see what's there. The "cd" command changes your current directory, like opening a folder. The "pwd" command shows you where you currently are in the file system. The "mkdir" command creates new folders. The "touch" command creates new empty files. The "rm" command removes files, and "rmdir" removes folders. The "cp" command copies files from one place to another. The "mv" command moves files or renames them. These basic commands let you organize files and navigate your system entirely from the command line.
The "cat" command displays the contents of files. The "grep" command searches for text within files, which is incredibly useful when you need to find specific information in large documents. The "man" command shows you the manual page for any command, explaining how to use it and what options are available. If you forget how to use a command, typing "man commandname" provides built-in documentation. The "sudo" command stands for "superuser do" and runs a command with administrator privileges. This is necessary for system-level tasks, but should be used carefully since administrator access can modify critical system files.
The command line uses certain symbols with special meanings. The asterisk (*) acts as a wildcard and matches any characters, so "*.txt" means "all files ending with .txt". The greater-than symbol (>) redirects output to a file instead of displaying it on screen. The pipe symbol (|) sends the output from one command as input to another command, letting you chain commands together. These symbols allow you to perform complex tasks by combining simple commands.
Getting comfortable with the command line takes practice but brings real advantages. Tasks that take many clicks in a graphical interface happen in seconds on the command line. You can write scripts—lists of commands that run automatically—to perform repetitive tasks. You can perform the same operation on hundreds of files at once. Many professional Linux users rarely use the graphical interface because the command line is faster and more powerful.
Practical Takeaway: Start learning basic commands like ls, cd, mkdir, cp, and mv. Keep a reference of common commands nearby and use "man" command to learn what options are available. Regular practice builds command line confidence quickly.
Understanding Users, Permissions, and System Security
Linux was designed from the beginning as a multi-user system where many people could use the same computer at the same time, safely, without interfering with each other. Each person has a user account with a username and password. When you log in, you're working as that specific user. This design means one person's actions don't accidentally damage another person's files or settings. The system keeps track of who owns each file and what each user is allowed to do with it.
The most powerful user account is called "root," similar to "Administrator" on Windows systems. The root user can do anything on the system without restrictions—read any file, modify system settings, install programs, or delete critical files. Because root has so much power, it can be dangerous if someone gains root access without permission or if you accidentally run the wrong command as root. For security reasons, it's better to use a regular user account for daily work and only use root access when absolutely necessary for specific tasks.
File permissions in Linux are displayed as a series of letters and symbols. The first character shows what type of thing it is: "d" means directory (folder), "-" means regular file, and "l" means link. The
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides →