The (in)complete guide to Linux

This guide does not cover you with all of the knowledge you need, but instead the "basics", and the extent of what I know, which is still very limited.

A brief overview

Linux is an open source kernel made in 1991 by Linus Torvalds, who also created git. Many operating systems/distros have been made since then, which are all powered by Linux. Some uses include:
- 100% of supercomputers worldwide
- 96% of servers worldwide
- Android systems
- Probably lots of other things you have, including smartwatches, TVs and cars
Fun fact: Torvalds has complained before that he started linux as a desktop operating system, and it's the "only area where linux hasn't taken over".

Installation

Click on a button to see how to install.

Basic commands: apt

We will start commands with apt. This is the package manager for most distrobutions.
Generally, it's best practice to update your system after an install. Lets try running apt update to find the packages that can be updated.


First command and already an error... Not to worry, this is a simple fix


For commands that require elevated permissions, like installing apps or updating your system, we need administrator permissions. This can be granted with the sudo keyword. Note that elevated permissions are granted by default when you are in root, i.e. running commands as the root user. The prompt for this would usually look like root@desktop$. Also note that if you're using WSL, your password is by default the same as your password to sign in to your PC, unless you've specified another one.



That's better. Now sudo apt update shows what packages can be updated, but that's not all as this command doesn't actually update anything. For that we need to run sudo apt upgrade, as seen above.

Now lets try installing a basic package. We'll use fastfetch, which shows basic system info in a more nicer looking way. We can install packages with the sudo apt install command.

Notice here that specific details of our install is listed. For example, we can see exactly how much space is needed for our package, and how much is available. It also shows exactly what files are being downloaded and installed.
Lets try running our package. We can do this with the command fastfetch