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.
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:
- Help you find online is usually given as terminal commands, since they're precise and easy to copy.
- Some tasks, like renaming 500 photos at once, are much faster in it.
- It works the same on every distro, while menus and buttons differ.
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.
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.
$ 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:
| Command | Stands for | What it does |
|---|---|---|
pwd | print working directory | Shows which folder you're in |
ls | list | Shows what's in the current folder |
cd Documents | change directory | Goes 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
| Command | What it does | Example |
|---|---|---|
mkdir | Make a new folder | mkdir Practice |
touch | Create an empty file | touch notes.txt |
cp | Copy | cp notes.txt backup.txt |
cp -r | Copy a folder and everything in it | cp -r Practice Practice-copy |
mv | Move or rename | mv backup.txt old.txt |
rm | Delete a file | rm old.txt |
rm -r | Delete a folder and everything in it | rm -r Practice-copy |
cat | Show a file's contents | cat notes.txt |
less | Read a long file page by page (q to quit) | less /etc/os-release |
nano | A simple text editor inside the terminal | nano notes.txt |
xdg-open | Open a file with its normal app | xdg-open photo.jpg |
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:
- Ctrl+O then Enter saves ("Write Out").
- Ctrl+X exits.
- Ctrl+W searches.
$ 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 / command | What it does |
|---|---|
| Tab | Auto-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+C | Stop the running command. (It does not copy here.) |
| Ctrl+Shift+C / V | Copy / paste in the terminal |
| Ctrl+R | Search your command history: type part of an old command |
Ctrl+L or clear | Clear the screen |
history | List your previous commands |
man ls | Open the manual for a command (q to quit) |
ls --help | A shorter help summary for most commands |
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.
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.
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:
| Task | Ubuntu / Mint / Debian (apt) | Fedora (dnf) | Arch / Manjaro (pacman) |
|---|---|---|---|
| Update everything | sudo apt updatesudo apt upgrade | sudo dnf upgrade | sudo pacman -Syu |
| Search for an app | apt search vlc | dnf search vlc | pacman -Ss vlc |
| Install | sudo apt install vlc | sudo dnf install vlc | sudo pacman -S vlc |
| Remove | sudo apt remove vlc | sudo dnf remove vlc | sudo pacman -Rs vlc |
| Clean up leftovers | sudo apt autoremove | sudo dnf autoremove | sudo pacman -Rns $(pacman -Qdtq) |
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.
$ 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.
| Format | What it is | Where you'll see it |
|---|---|---|
| Flatpak | Apps 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 |
| Snap | Ubuntu's universal format. Similar idea to Flatpak. | Ubuntu's App Center |
| AppImage | A 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
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:
- Linux Mint: Menu โ Driver Manager โ select the recommended NVIDIA driver โ Apply โ restart.
- Ubuntu: Menu โ Software & Updates โ Additional Drivers tab.
- Pop!_OS and Bazzite offer special NVIDIA downloads with the driver already included.
- Fedora: enable the RPM Fusion repository and follow its NVIDIA guide.
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).
- Connect the printer to the same network, or plug in its USB cable.
- Open Settings โ Printers. It usually appears by itself. If not, click Add.
- 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.
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 snapshots | Personal file backups | |
|---|---|---|
| Protects | The system itself: programs, settings, updates | Your documents, photos, music |
| Saves you when | An update or a bad command breaks something | Your disk dies, your laptop is stolen, you delete a file by mistake |
| Tool | Timeshift (pre-installed on Mint) | Dรฉjร Dup ("Backups") or Pika Backup |
| Windows equivalent | System Restore | File History |
Set up Timeshift (10 minutes)
- Open Timeshift from the menu and run the setup wizard.
- Choose RSYNC (or BTRFS if your system uses that file system).
- Pick a disk to store snapshots on, and set a schedule, for example daily, keeping 5.
- If an update ever breaks things, open Timeshift and click Restore on a snapshot from before.
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.
- Steam: install it from your app store. Then go to Steam โ Settings โ Compatibility and turn on "Enable Steam Play for all other titles". Steam will then run Windows games through Proton, a compatibility layer, automatically.
- Epic Games, GOG and Amazon: use Heroic Games Launcher.
- Other launchers and older games: try Lutris.
- Check compatibility: ProtonDB shows player reports for each game, with tips.
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:
- Use the web version. Microsoft 365, Photopea (a Photoshop-like editor), Canva and many others run in a browser.
- 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
.exeinstaller inside it. Many simple and older programs work well. Large professional suites often don't. - 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.
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
- Back up everything. Changing disk partitions is rarely a problem, but when it is, it's a big one.
- 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.
- 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.
- 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
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:
- โ Open the terminal and move between folders with
cd,lsandpwd - โ Create, copy, move, delete and edit files from the terminal
- โ Use Tab, โ and
manwithout thinking about it - โ Explain what
sudodoes and when to use it - โ Install, update and remove software with your package manager and Flatpak
- โ Have Timeshift and a personal-file backup running