
One goal that brings many people to GNU/Linux is a better understanding of the systems they live and work with. A lot of people want to be able to fix their bicycle instead of just riding it; to know the chemistry that makes food taste good instead of just eating it. Your computer system is a big part of your life, and by using Linux you can appreciate the computer more intensely.
So we get to Objective 014 of Linux Essentials: Linux System Administration Basics. This is probably the broadest and deepest of the five major objectives. By investigating its topics, you can become the type of power user who not only fixes problems on your own system but gets asked by other people to help with theirs.
Objective 014 is concerned mostly with setting up a system. In these topics, you learn how to choose a computer and a Linux distribution, how to get Linux working with its parts and peripherals, how to troubleshoot problems, and how to get onto a network.
If this objective helps you set up Linux, why is it the fourth objective instead of coming first? You need some of the skills in the earlier objectives to carry out the tasks of this one. Perhaps you have practiced those skills on a simulated Linux system or on a friend’s system, and now you are ready to set up your own.
In the Linux Essentials certificate, this objective contains four topics. We’ll look at the purpose behind each topic in the following subsections. You can see the topics in LPI’s list of objectives and read about the technology in detail in LPI’s Learning Materials.
This section answers basic questions such as “How Does Linux differ from Windows, a Mac, or Unix?” and “Where can I get Linux?” Because of LPI’s focus on free and open source software and our international reach, the section concentrates on GNU/Linux distributions that are free for download everywhere in the world, but other distributions are mentioned in order to be comprehensive.
While reading this section, consider your own needs and priorities. Do you want enterprise stability, a simple consumer experience, or hacker power? I’ll make a personal suggestion here: whichever class you put yourself in, start your Linux journey by choosing a very popular distribution in that class. In that way, you’ll be able more easily to get online support from a large community.
Linux, which dominates servers and data centers, is much less popular on desktops, although at 2.99% (and a previous high of 4.44%) it is not a rarity either. It’s possible that its share is undercounted because so many people convert computers from Windows to Linux, rescuing old hardware.
Many manufacturers who ensure that their hardware works with Microsoft Windows and Apple computers make no attempt to support Linux. There are some fine companies offering Linux pre-installed on computers; these companies often become LPI partners, in fact. But you might have financial, ecological, or other reasons to install Linux on another system. Even if you buy a system with Linux pre-installed, you will still have to make sure that peripherals such as printers and external drives work with Linux.
At the same time, Linux supports a wider range of computer chips (processors) than any other operating system. Some of these processors are covered in this topic.
The preceding background helps to justify topic 014.2, Computer Hardware and Device Access. The material here is useful for choosing any kind of computer running any kind of operating system. It offers general information such as how different computers compensate for the heat that power supplies generate, the various types of firmware that a computer needs to boot up, and the advantages of different kinds of memory.
The topic also explains the commands that let you identify your hardware on a Linux system, and the conventions that apply to different parts of a hard drive known as partitions.
Every time you run a command, it starts a process. The term process is very strictly defined in Linux and is associated with a predictable set of information, such as the user who owns the process. (That’s important because a process generally has access only to the system resources to which its user has access.)
One might say that everything except the kernel itself is a process. The shell you learned about in Objective 012 is a process. A database runs as a process. Even to get the system up and running, the kernel starts a process called init.
In a more general sense, this topic answers the question, “What’s going on in my computer system?” The objective covers devices and memory as well as processes. Exploring this question is valuable for a number of scenarios: diagnosing performance problems, looking for malicious software, figuring out where to install new programs, and more.
But before explaining processes, this objective needs to spend some time returning to the basic structure of files and directories, which was introduced in an earlier objective. Here we delve into the details of where important files live.
Different Linux systems used to provide a confusing variety of places for such basic things as commands and user directories, but in 2015 the Linux Foundation encouraged distributions to come together around a single Filesystem Hierarchy Standard (FHS). That makes documentation such as LPI’s Learning Materials much simpler, and means you can quickly find what you want on any Linux system. (Actually, the location of some commands still varies from one system to another; in this topic you’ll learn how to find their locations.)
All this discussion of directories and locations becomes relevant to processes when we start to discuss the /proc directory. This directory works on the basis of a clever trick: all sorts of information about the processes running on a system is stored in pseudo-files that are easy to read and (in some cases) modify in order to alter the operation of the system. Unlike real files, these don’t have a permanent place on any disk. They just make it easy to use everyday commands to learn about what’s running and to interact with the kernel.
Finally, this topic covers log files, where the kernel stores information about what was going on, such as who has logged in.
Now that you have set up a system and know how to navigate within it, this objective ends by helping you connect to a network. Many systems, including Linux distributions, offer graphical interfaces for the information. This topic gives you the background to understand the information you’re providing along with some commands that let you join a network from the command line.
We start with basic information such as the different layers on the internet, what various types of networking addresses are, and the role of sockets in attaching to the Web or other programs across the internet. Both IPv4 and IPv6, different versions of the Internet Protocol, are covered. IPv4 is still most commonly in use, but the world is gradually moving to IPv6 and it’s important in many locations.
The objective also covers the Domain Name System (DNS). A domain name, such as lpi.org, permits you to find a computer without knowing its IPv4 or IPv6 address. Using the information in this section, you can make sure that you can connect to a DNS server and troubleshoot problems with DNS.
Everybody benefits from knowing what is going on within the systems they use. I was lucky enough recently to buy a new refrigerator that has sensors for lots of things and can give me an alert when the water filter needs to be changed.
System and network administrators seek what they call observability to describe this kind of all-encompassing knowledge of a system. On your laptop or desktop, you can benefit from observability too. That’s what Objective 014 of Linux Essentials is for.
<< Read the previous part of this series | Start the series from the beginning >>
You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from YouTube. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from reCAPTCHA. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information