What is Linux®?
by Chris Woodford. Last updated: November 2, 2017.
Could a bunch of ordinary people get together to design and build a space rocket that would take them to the moon? It sounds like a crazy idea, doesn't it? How could amateurs possibly cooperate to pull off something so intricate and complex? A few years ago, if you'd suggested thousands of enthusiastic geeks could work together to build a rival to Microsoft's mighty Windows operating system, people would have thought you crazy too. But that's exactly what's happened with Linux®, a freely available alternative to Windows developed mostly by brilliant young computer programmers in their spare time. Let's take a closer look at the miracle of Linux: what is it, and why should you use it?
Photo: Tux the penguin is the mascot of the Linux operating system. Tux image by Larry Ewing published under a Creative Commons Licence.
What is an operating system?
Most people don't think too much about how their computers work. They just click on the desktop icons and run the email program, word processor, Web browser, or MP3 player. It doesn't matter how the computer does what it's doing; all they care about is that it helps them send an email, write a letter, do a Google Web search, or download a song. Programs that run on our computers doing useful jobs like this are called applications (application programs or "apps")—but they're only part of the story. Underneath the applications, there's a more basic program running that helps all the applications do their work. It's called the operating system.
The operating system's job is manage all the computer's basic operations, by doing things like displaying characters on the screen, figuring out which keys you're pressing on the keyboard, turning on the fan when the processor chip in your computer gets too hot, and storing data (information) on the hard drive. Because the operating system worries about all these mundane chores, the applications don't have to: they can simply concentrate on the jobs they have to do. If there were no operating system, every application program would have to do all these things too—which would be a huge duplicated effort.
Photo: What an operating system does: As a user, the last thing you want to be bothered with is all the nitty gritty of how a computer actually works. Typically, you work with user-friendly applications ("apps"), which run on top of the operating system. The operating system controls the computer's basic operations with the help of an even more fundamental layer of software (actually firmware—software embedded in a computer's hardware) called the BIOS (Basic Input Output System), which is responsible for booting up your computer when you first switch it on.
Think of a computer as an office block where all the people inside are journalists busily putting together a newspaper. The journalists are trained to gather and publish news; they don't want to have to worry about running the canteen, hiring security guards, cleaning the windows and so on. So they employ (or "contract out") these basic jobs to another company that specializes in what's known as "facilities management" (looking after the building). An operating system is just like facilities management: it does the dirty jobs for application programs so they can concentrate on the more interesting stuff that they're really good at.
How did Windows become so popular?
Windows (and its predecessor DOS, Disk Operating System) became the world's favorite operating system in the early 1980s. Before that time, small personal computers (which were then known as microcomputers or micros) had no operating system. Each machine worked in its own unique way. If you wanted a really good arcade game for your computer, often you had to write it yourself. And, because there was no operating system, you had to write it in machine language—the raw code of the computer's processor. Even if you were developing a game, you had to know how to make characters appear on the screen, operate the disk drive, and do all that other nitty gritty as well. Because each computer worked differently, programs written on one machine wouldn't work on anything else. Every machine was totally different and it was a nightmare to get machines to talk to one another or exchange information.
An early operating system called CP/M changed all that. Once microcomputers started to use CP/M, they could suddenly all use the same programs. The idea was simple. The companies who made the computers ensured that they could run the CP/M operating system. Once they'd achieved that, their machines could run any and every program already written for CP/M—the programs didn't need to be rewritten, as they would have had to have been if CP/M hadn't existed.
When IBM launched its hugely popular personal computer in the early 1980s, it tried to buy the rights to CP/M—and failed. Instead, it arranged for an unknown boy-genius programmer to write an alternative operating system of its own: DOS. The boy genius was Bill Gates and DOS gradually evolved into Windows, a product so successful that it made Gates the world's richest man. The great thing about Windows was that it made the world's personal computers talk the same language, so it was suddenly possible for different machines to run the same programs and exchange information very easily. People often say that ever-shrinking, ever-more-powerful microchips caused the computer revolution—but the success of Windows in making computers more uniform, compatible, and easy-to-use was hugely important too. You can read more about this in our article on the history of computers.
Photo: Spot the difference! To a computer user, a Windows system (left) and Linux system (right) look virtually identical and work in a similar way. You can customize the way your Linux desktop appears to make it look virtually identical to Windows, if you really want to (though you don't have to). Once your Linux system is up and running, it's as easy to use as Windows and you won't notice the difference. This is the Lubuntu Linux distro running the LXDE desktop (see below).
From Windows to GNU/Linux
If Windows is so good, why would anyone want an alternative? Many people—especially more technically savvy ones—don't like certain aspects of Windows and the Microsoft "culture" that goes with it. They don't like Microsoft's domination of the computer industry and the tactics it has allegedly sometimes used against its competitors. Some of them don't even think Windows is a particularly good product. One obvious risk of everyone using the same operating system is that harmful programs like computer viruses and "worms" can spread more easily. Apart from that, not everyone agrees that we should all do things the same way. Henry Ford once reputedly said to his customers that they could have his famously successful Model-T in any color, "so long as it's black." Some people just like to do things differently.
Linus Torvalds is one of those people. During the 1990s, this
Finnish computer programming student thought he'd have a go at writing
his own operating system, loosely based on a well-known system called
UNIX. He shut himself away in a bedroom in his mother's house, lived
off her pasta, and eventually posted a message on an Internet bulletin
board telling the world what he was up to: "I'm doing a (free)
operating system (just a hobby, won't be big and professional...)"
Soon, thousands of other amateur programmers had joined in the
effort—and the Linux operating system was born. The core of Linux is a
basic operating system called the kernel. On
top of this,
people run applications written for the Linux kernel, many of them
also developed by amateur programmers. This collective of people who
"free software" was originally inspired by another maverick programmer,
Richard Stallman, and a project he started named GNU. Now, more than a
decade later, GNU/Linux is such a credible alternative to Windows that
companies like IBM and Dell are shipping it on their machines. Linux
may not have started out "big and professional", but it's quickly ended
up that way.
How Linux works in practice
Photo: Linux comes in different flavors or distros. These two are openSUSE (left) and Kubuntu (right), and there are literally dozens of others.
Linux is a bit more nebulous than Windows and it can be slightly harder to get your head around the concept to start off with. When people talk about "Linux," they don't always necessarily mean the same thing! If I say "I use Linux," it means I have both the operating system kernel and some applications that run on top of it. If you decide you want to run Linux on your computer, you usually get it in the form of a convenient package called a distribution or "distro." This is typically one or more CD-ROMs or DVDs that installs onto your computer the basic operating system kernel and a collection of application programs. Slimline distros (like Puppy Linux and Lubuntu) come with just a small set of applications; others (like SUSE) have hundreds or thousands.
Just because you start with one distro, doesn't mean you have to stick with it forever. You can install an entirely different distro if you want to and (generally) keep on using the same applications. Your files and folders will all stay exactly the same. If you keep all your stuff in a folder called Documents, you can just copy this over to the new distro (using a flash memory stick or external hard drive) once it's installed.
A given distro will have a certain version of the Kernel and a certain selection of applications to go with it. Unlike Windows, which has one basic desktop layout you can customize, Linux has various different desktops you can choose from: the two best known are called KDE and Gnome, though lesser-known alternatives include Xfce and LXDE. Both KDE and Gnome have good and bad points and which you go for is a matter of personal preference.
Some distros oblige you to use either one or the other of these desktops, so the desktop you prefer often determines the distro you choose. Ubuntu, one of the more popular distros for Linux newbies, is based on Gnome, though recent versions also use Unity, a streamlined, user-friendly interface that runs on top of Gnome. There's a version of Ubuntu, Kubuntu, that uses KDE and its equivalent of Unity, which is called the Plasma Desktop. The lightweight distro Lubuntu uses LXDE, a slimmed down desktop more appropriate for the older and lower-powered machines (such as netbooks) for which Lubuntu is designed. Big distros like SUSE let you choose between KDE and Gnome when you first install—and even-handed support for both major desktops has always been one of SUSE's selling points.
Photo: Ubuntu: One of the simplest and most popular distros. Here it's using the Gnome desktop. If you prefer KDE, you can run an Ubuntu variant distro called Kubuntu or a different KDE-based distro entirely.
What's Linux actually like?
I wrote the original version of this article 10 years ago using a version of Linux distributed by a German company called SUSE. When I bought my laptop, I bought a SUSE Linux package at the same time: a set of several CDs and a manual. To get Linux working, I simply inserted the CDs into the drive and booted (started up) the machine. The SUSE Linux installation program partitioned my hard drive (split it into two) and moved Windows to one side in one partition. In the other partition, it installed the Linux kernel and dozens of free application programs. For virtually every program you can think of that runs on Windows, you can find a similar equivalent that will run on Linux. Thus, there's a comprehensive office suite called OpenOffice (or LibreOffice) that runs a word-processor, spreadsheet, and slideshow that are almost completely compatible with Microsoft's Word, Excel, and Powerpoint. There's the Firefox web browser for sending emails and surfing the Net. There are numerous MP3 players, including XMMS, Amarok, and Audacious, and movie players such as Kaffeine. There's even a complete graphics program called The Gimp that provides a credible, open-source alternative to PhotoShop. Windows is still on my computer too and runs just like it always did in the other partition; I simply choose which system I want to use when I boot my machine. An arrangement like this is called dual-booting, because I can make the computer start in Windows or Linux, as I wish. I now have two machines for the price of one!
What about Windows files and folders?
You can copy your entire Windows "My Documents" folder to Linux and open and edit all the files, though you will generally have to use different applications, depending on what you're doing. Some applications, like The Gimp graphics package, look and work the same on Windows and Linux, so you can open an image you've created in Windows using the Linux version of The Gimp and continue working with it the same way. The Linux office packages (OpenOffice and LibreOffice) have a very similar look and feel to Microsoft Office, and basic editing is almost exactly the same, but you will need to relearn some of the more advanced tips and tricks.
It all sounds easy—but there are some drawbacks. Setting up Linux to start with can be a simple, half-hour task—or it can have you tearing your hair out for days and weeks if your system is unusual. One of the biggest problems is that Linux isn't nearly so comprehensive as Windows in the way it handles peripherals (the add-ons like USB modems, webcams, and inkjet printers that you plug into your machine). Even if you have a perfectly ordinary printer or scanner, you might find that Linux doesn't support it: it might not have a small program called a driver that tells your computer how to use it. In practice, there are three solutions to this. Either you can wait until one of those helpful amateur programmers sorts out the problem and modifies the Linux kernel or writes a driver so it does what you need, or you can buy replacement peripherals that Linux does support, or you can run Windows each time you want to use that troublesome bit of kit.
Why bother with Linux? There are no viruses, worms, or security scares to worry about. It typically runs faster than Windows. And it's mostly "free" in both senses of the word: Linux and programs written for it are often given away at little or no cost; they also have fewer copyright restrictions so you can share them very easily. You can download most Linux distributions, with the kernel and all the programs you need, absolutely free (though you can buy them prepackaged on CD or DVD if you prefer). Compare that to the price of Windows, and all the expensive software that comes with it, and you'll see what an amazing deal Linux really is. Since Linux is released under a "free" copyright licence, it's easy for people to modify and extend as they wish, though there are still some restrictions on what you can do; most importantly, any modifications you make also have to be released to the world under a similar "free" licence.
Installing a slimmed-down Linux distro, such as Puppy Linux or Lubuntu, is a great way of reviving an old PC or laptop that can no longer handle big, bloated modern versions of Windows (or even one of the bigger Linux distros). After Microsoft ditched support for Windows XP in 2014, some people switched their old machines to Linux to keep them virus-free and secure. Surprisingly, even a 10-year-old laptop will happily run one of these distros with perfectly acceptable performance, giving you access to the latest web browsers (Firefox and Chromium) and office software (typically with the basic word processor Abiword or the Libre Office package) and extending the life of an old machine by a few more years. (Just to give you an example: in late 2016, I'm updating this article on an old, backup laptop that was made around 2001, which is still happily running an up-to-date version of Lubuntu.)
How do you get started with Linux?
The best way to try Linux is to get a Linux-friendly friend to demonstrate it. But if you're moderately clued up, try it for yourself by getting hold of a live CD/DVD: a version of a Linux distro that boots and runs from a CD/DVD and RAM without affecting your existing Windows setup. You can download live-CD/DVD versions of most distros and burn them easily enough. (Ubuntu is a good distro to start off with and you can find it on the Ubuntu downloads page.) Once you've got your live CD/DVD, just pop it in your CD or DVD player, make your computer boot from that drive (consult your manual if you're not sure how to do this), and Linux will run (probably rather slowly) in a kind of demonstration mode. Remember that in reality it will boot and run very much faster.