Level 2

Intermediate: Becoming comfortable

This level takes the fear out of the terminal, shows you every way to install software, and covers the practical stuff: drivers, printers, backups, games and keeping Windows around.

2.1 Meet the terminal

The terminal is a window where you type instructions instead of clicking. It looks old-fashioned, but it's simply another way to tell the computer what to do, and often a faster one.

In plain words

Using menus is like ordering in a restaurant by pointing at pictures. Using the terminal is like telling the waiter exactly what you want. Both work, but speaking is quicker once you know the words.

You don't need the terminal for everyday use. It's worth learning because:

To open it: press Ctrl+Alt+T, or search for "Terminal" in the menu.

You'll see something like this:

anna@laptop:~$ 

This is the prompt. It means "I'm ready, type something". It shows your username (anna), the computer's name (laptop) and the folder you're in (~ is short for your home folder). The $ means you're a normal user.

How to read this course's examples

In the dark code boxes, the green $ at the start of a line is the prompt. Don't type it. (If you copy a command from this page, the $ is left out for you.) Type what comes after it and press Enter. Grey text after a # is a comment explaining the command. You can type it or leave it out, because the computer ignores it. Lines without $ show what the computer replies.

Try it: your first commands
$ whoami
anna
$ date
Thu 26 Nov 2026 10:15:02 CET
$ cal

whoami prints your username, date prints the date and time, and cal shows a calendar. (If cal isn't found, you'll learn how to install it in 2.6.)

2.2 Moving around

In the terminal you're always "standing" in one folder, just like having one folder open in the Files app. Three commands let you look around and move:

CommandStands forWhat it does
pwdprint working directoryShows which folder you're in
lslistShows what's in the current folder
cd Documentschange directoryGoes into the folder Documents
cd ..Goes up one level (.. means "the folder above")
cd or cd ~Goes back home from anywhere
cd -Goes back to the previous folder
$ pwd
/home/anna
$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
$ cd Documents
$ pwd
/home/anna/Documents
$ cd ..
$ pwd
/home/anna

Options change how commands behave

Most commands accept options (also called flags) that start with a dash. For example:

$ ls -l        # long list: sizes, dates, permissions
$ ls -a        # all: include hidden files
$ ls -lh       # long list with human-readable sizes (K, M, G)
$ ls -lah ~/Downloads   # combine options and name a folder

Spaces in names

The terminal uses spaces to separate things. For a folder called My Photos, use quotes: cd "My Photos". Otherwise it thinks you mean two things, My and Photos.

2.3 Working with files

CommandWhat it doesExample
mkdirMake a new foldermkdir Practice
touchCreate an empty filetouch notes.txt
cpCopycp notes.txt backup.txt
cp -rCopy a folder and everything in itcp -r Practice Practice-copy
mvMove or renamemv backup.txt old.txt
rmDelete a filerm old.txt
rm -rDelete a folder and everything in itrm -r Practice-copy
catShow a file's contentscat notes.txt
lessRead a long file page by page (q to quit)less /etc/os-release
nanoA simple text editor inside the terminalnano notes.txt
xdg-openOpen a file with its normal appxdg-open photo.jpg
Careful: rm has no Recycle Bin

Files deleted with rm are gone immediately and permanently. They don't go to the Trash. Double-check before pressing Enter, especially with rm -r. Add -i (rm -i file) to be asked "are you sure?" for every file.

Using nano

nano is the friendliest terminal editor. The shortcuts are listed at the bottom of the screen, where ^ means Ctrl:

Try it: a small project
$ cd ~/Documents
$ mkdir Practice
$ cd Practice
$ nano shopping.txt      # type a few items, Ctrl+O, Enter, Ctrl+X
$ cat shopping.txt
$ cp shopping.txt shopping-copy.txt
$ ls
$ rm shopping-copy.txt
$ xdg-open .             # "." means "this folder": opens it in Files

2.4 Terminal time-savers

These few tricks make the terminal far more pleasant:

Key / commandWhat it does
TabAuto-complete. Type cd Doc and press Tab, and it fills in Documents/. Press Tab twice to see all options. Use it constantly, as it also prevents typos.
โ†‘ / โ†“Scroll through commands you've typed before
Ctrl+CStop the running command. (It does not copy here.)
Ctrl+Shift+C / VCopy / paste in the terminal
Ctrl+RSearch your command history: type part of an old command
Ctrl+L or clearClear the screen
historyList your previous commands
man lsOpen the manual for a command (q to quit)
ls --helpA shorter help summary for most commands
Reading a command before you run it

Break it into words. The first word is the program, the words with dashes are options, and the rest are what it acts on. In cp -r Photos /media/anna/USB: copy, including folders, the Photos folder, to the USB stick. If a part is unfamiliar, look it up with man before running it.

2.5 sudo and the admin password

On Linux, your everyday account can't change the system. It can only change your own files. This is a big reason Linux is secure: a bad program you run can't easily damage the system.

When you do need to change the system, such as installing software or editing system settings, you put sudo in front of the command. It means "superuser do": run just this one command as administrator.

$ sudo apt update
[sudo] password for anna:

Type your own password and press Enter. Nothing appears while you type, not even dots. This is normal. It's a security feature, not a frozen keyboard.

Coming from Windows

sudo is the same idea as the Windows "Do you want to allow this app to make changes to your device?" pop-up. When the app store asks for your password, it's using the same mechanism.

Careful

With sudo, Linux trusts you completely, so it won't stop you from deleting important system files. Only use sudo when a task genuinely needs it, and never with commands from untrustworthy sources.

2.6 Package managers: the app store, from the terminal

The app store from Level 1 is a friendly front for a package manager, a tool that downloads, installs, updates and removes software. Each distro family has its own:

TaskUbuntu / Mint / Debian (apt)Fedora (dnf)Arch / Manjaro (pacman)
Update everythingsudo apt update
sudo apt upgrade
sudo dnf upgradesudo pacman -Syu
Search for an appapt search vlcdnf search vlcpacman -Ss vlc
Installsudo apt install vlcsudo dnf install vlcsudo pacman -S vlc
Removesudo apt remove vlcsudo dnf remove vlcsudo pacman -Rs vlc
Clean up leftoverssudo apt autoremovesudo dnf autoremovesudo pacman -Rns $(pacman -Qdtq)
Why two commands on Ubuntu/Mint?

apt update refreshes the list of available software, like getting the latest catalogue. apt upgrade actually installs the newer versions. Always run them in that order.

Software comes from repositories: official online libraries maintained by your distro. Because your distro checks and signs everything in them, they're the safest source of software.

For many more commands, extra repositories (PPA, RPM Fusion, AUR) and distro-specific advice, see the full package manager guide.

Try it (Ubuntu/Mint shown)
$ sudo apt update
$ sudo apt install cowsay
$ cowsay "I installed this from the terminal!"
$ sudo apt remove cowsay

2.7 Flatpak, Snap and AppImage

Besides your distro's own packages, there are three "universal" formats that work on any distro. You'll often see them offered on app websites.

FormatWhat it isWhere you'll see it
FlatpakApps from Flathub, a big central store. Each app runs in a "sandbox" (a fenced-off area) for extra safety, and you get recent versions.Built into Mint, Fedora and most others' app stores
SnapUbuntu's universal format. Similar idea to Flatpak.Ubuntu's App Center
AppImageA single file that is the app. Download it, make it executable (right-click โ†’ Properties โ†’ Permissions โ†’ "Allow executing"), then double-click. Nothing to install. It doesn't update itself, though.Downloads on some app websites
# Flatpak from the terminal
$ flatpak search obs
$ flatpak install flathub com.obsproject.Studio
$ flatpak update
$ flatpak uninstall com.obsproject.Studio
Which should I pick?

Use whatever your app store offers first. If an app has both a "system package" and a "Flatpak" version, either is fine: the Flatpak is usually newer, the system package is usually smaller and better integrated. Use AppImages only from the official website of the app.

2.8 Drivers and hardware

A driver is a small piece of software that lets the system talk to a piece of hardware. Good news: on Linux, almost all drivers are built in. There's no hunting for "driver CDs" or downloading from manufacturer websites. Most hardware just works when you plug it in.

The main exception: NVIDIA graphics cards

AMD and Intel graphics work perfectly out of the box. NVIDIA cards also work, but for good gaming performance you should install NVIDIA's own driver:

Finding out what hardware you have

$ lspci          # devices inside the computer (graphics, Wi-Fi, sound)
$ lsusb          # devices plugged in via USB
$ inxi -Fz       # a full, readable summary (install "inxi" first if missing)

When something doesn't work, search for the exact device name from these commands plus your distro name.

2.9 Printers and scanners

Most modern printers, especially network or Wi-Fi printers bought in the last several years, work without any driver. Linux detects them automatically through a standard called "driverless printing" (IPP Everywhere / AirPrint).

  1. Connect the printer to the same network, or plug in its USB cable.
  2. Open Settings โ†’ Printers. It usually appears by itself. If not, click Add.
  3. Print a test page.

HP printers have excellent Linux support through the hplip package. Brother and Epson provide Linux drivers on their websites for older models.

Scanners: use the Document Scanner app (Simple Scan) or Skanlite on KDE. Many all-in-one printers scan without a driver too.

Tip

Before buying a printer, search for "model name Linux". The OpenPrinting database lists how well each one works.

2.10 Backups and system restore

There are two different kinds of backup, and you want both:

System snapshotsPersonal file backups
ProtectsThe system itself: programs, settings, updatesYour documents, photos, music
Saves you whenAn update or a bad command breaks somethingYour disk dies, your laptop is stolen, you delete a file by mistake
ToolTimeshift (pre-installed on Mint)Dรฉjร  Dup ("Backups") or Pika Backup
Windows equivalentSystem RestoreFile History

Set up Timeshift (10 minutes)

  1. Open Timeshift from the menu and run the setup wizard.
  2. Choose RSYNC (or BTRFS if your system uses that file system).
  3. Pick a disk to store snapshots on, and set a schedule, for example daily, keeping 5.
  4. If an update ever breaks things, open Timeshift and click Restore on a snapshot from before.
Careful

Timeshift doesn't back up your personal files by default, and a backup on the same disk won't survive that disk dying. Keep your personal backups on an external drive or cloud storage. A good rule is 3-2-1: 3 copies, on 2 different kinds of storage, 1 of them somewhere else.

2.11 Gaming

Gaming on Linux has improved enormously, largely thanks to Valve (the company behind Steam and the Steam Deck). Most Windows games now run on Linux.

The anti-cheat problem

Some popular online multiplayer games use anti-cheat systems that deliberately block Linux. Check areweanticheatyet.com for the games you care about before switching.

2.12 Running Windows programs

If a Windows program has no Linux version and no good alternative, you have three options. In order of preference:

  1. Use the web version. Microsoft 365, Photopea (a Photoshop-like editor), Canva and many others run in a browser.
  2. Wine / Bottles. Wine is a translation layer that lets many Windows programs run directly on Linux. Bottles (install it from Flathub) is a friendly app that sets Wine up for you: create a "bottle", then run the program's .exe installer inside it. Many simple and older programs work well. Large professional suites often don't.
  3. A virtual machine. Run a real copy of Windows inside a window, using GNOME Boxes or VirtualBox. Almost everything works, but it needs a Windows licence, plenty of memory, and isn't suitable for games.
In plain words

Wine is like an interpreter translating between a Windows program and Linux in real time. A virtual machine is like building a small Windows room inside your Linux house.

2.13 Dual-booting with Windows

Dual-booting means having both Windows and Linux installed. When the computer starts, a menu (called GRUB) lets you choose which to use.

Before you start, in Windows

  1. Back up everything. Changing disk partitions is rarely a problem, but when it is, it's a big one.
  2. Get your BitLocker recovery key. Many Windows 11 computers encrypt the disk automatically. Changing the startup setup can make Windows ask for this key. Find it at account.microsoft.com/devices/recoverykey and write it down.
  3. Turn off Fast Startup: Control Panel โ†’ Power Options โ†’ "Choose what the power buttons do" โ†’ untick Turn on fast startup. Otherwise Windows doesn't really shut down, which can corrupt files shared between the two systems.
  4. Make room: open Disk Management, right-click your C: drive โ†’ Shrink Volume. Free up at least 50 GB for Linux, ideally more.

Then install Linux

Boot the Live USB and run the installer. Choose "Install alongside Windows", or install into the free space you created. After that, a menu at startup lets you pick Linux or Windows.

Common dual-boot quirk: the clock is wrong

Windows and Linux store the time in the computer's clock differently, so after switching, the clock may be off by a few hours. The simplest fix is to run this once in Linux:

$ timedatectl set-local-rtc 1
Tip

Your Windows drive shows up in the Linux Files app, so you can open your Windows files from Linux. The reverse isn't possible without extra tools.

Level 2 checklist

You're ready for Level 3 when you can: