Linux and open-source computing guides for UK homes and schools

The Linux Command Line for Absolute Beginners

So you’ve taken the plunge. Maybe you’ve installed Ubuntu or Linux Mint on an ageing laptop that Windows had given up on, or perhaps there’s a Raspberry Pi sitting on your desk waiting to do something useful. You’ve logged in, everything looks friendly enough, and then you open a terminal window and find yourself staring at a blinking cursor with no idea what to type. We’ve been there. The good news is that the command line is far less intimidating than it looks, and a handful of commands will carry you through most everyday tasks.

Why Bother with the Command Line?

Why Bother with the Command Line?

The terminal has an unfair reputation as a tool reserved for bearded experts in server rooms. In reality, it’s often the quickest way to get things done. Installing open-source software, renaming fifty files at once, checking why your Wi-Fi keeps dropping, or backing up a folder of family photos can all take seconds from the command line. Both Ubuntu UK and Linux Mint ship with a terminal installed by default, so there’s nothing extra to set up. On a Raspberry Pi, the terminal is practically part of the furniture.

Common myths about the command line

We hear the same worries again and again. Let’s clear a few up:

  • “One wrong keystroke will destroy my computer.” Most commands are harmless, and many will simply refuse to run if you lack permission.
  • “It’s only for programmers.” Teachers, parents, and hobbyists use it daily for ordinary tasks.
  • “You have to memorise hundreds of commands.” Around ten commands cover the vast majority of beginner needs.
  • “There’s no undo.” There isn’t a Ctrl+Z for everything, true, but copying files before deleting them is a habit that costs nothing.

When the GUI is not enough

Graphical interfaces are wonderful, and we use them most of the time. But some jobs are genuinely awkward with a mouse. Bulk-renaming a term’s worth of worksheets, installing a package that isn’t in the software centre, or reading a log file to find out why a printer stopped working are all cases where the terminal wins. Think of it as a second toolkit, not a replacement.

Opening the Terminal on Ubuntu and Linux Mint

Getting started takes seconds on every mainstream distribution.

Keyboard shortcuts and menu locations

On Ubuntu UK and Linux Mint, press Ctrl+Alt+T and a terminal window appears. If you prefer the menu route, click the application launcher and search for “Terminal” — on Linux Mint it lives under Accessories. Raspberry Pi OS puts a terminal icon directly on the taskbar, so it’s one click away.

What you see when it opens

You’ll see a line that looks something like yourname@computer:~$. That’s your prompt. The part before the @ is your username, the part after it is the machine’s name, and the ~ symbol means you’re currently sitting in your home folder. The $ is simply the prompt waiting for your instruction. Type a command, press Enter, and the output appears below.

Essential Commands for Everyday Tasks

These are the commands we recommend learning first. Practise them in your home folder where nothing important can be broken.

Navigating folders with pwd, ls, and cd

  • pwd — prints the folder you’re currently in.
  • ls — lists the contents of that folder. Try ls -l for more detail.
  • cd Documents — moves into the Documents folder. Use cd .. to go back up one level.

For example, a parent helping with homework might type cd Documents/Homework to jump straight into the right folder.

Creating and deleting files and directories

  • mkdir SchoolProject — creates a new folder called SchoolProject.
  • touch notes.txt — creates an empty text file.
  • cp notes.txt backup.txt — copies a file.
  • mv notes.txt Documents/ — moves a file (or renames it if you give a new name).
  • rm notes.txt — deletes a file. There is no recycle bin here, so double-check before pressing Enter.

A sensible habit for backing up photos: create a folder called PhotosBackup, then use cp to copy your pictures across before doing anything drastic.

Using sudo for administrative tasks

Some actions — installing software, editing system files — require administrator rights. Prefix the command with sudo, and you’ll be asked for your password. For instance, sudo apt update refreshes the list of available software. Treat sudo with respect: it bypasses the safety net, so only use it when you understand what the command does.

Installing and Updating Open-Source Software

One of the great joys of Linux is how easy software installation becomes once you know two commands.

Using apt update and apt upgrade

Run sudo apt update to refresh the package lists, then sudo apt upgrade to install any available updates. We suggest doing this weekly, much like you’d check for updates on any other system.

Finding and installing packages

To install something, use sudo apt install packagename. A few favourites:

  • sudo apt install libreoffice — the full LibreOffice productivity suite, ideal for schoolwork.
  • sudo apt install gimp — a powerful image editor for photo projects.
  • On Raspberry Pi, sudo apt install scratch gets you the block-based programming environment used in many UK classrooms.

Snap vs apt: what’s the difference?

Ubuntu UK also offers snap packages, which bundle an application with its dependencies so it works consistently across versions. Install one with sudo snap install packagename. Linux Mint, by contrast, focuses on apt and flatpak rather than snap. As a beginner, apt is the simpler starting point; snap is worth knowing when a specific app isn’t available the traditional way.

Practical Projects for Home and School

Once the basics click, it’s time to build something. Here are three projects we recommend to newcomers.

Setting up a Raspberry Pi print server

An old USB printer plus a Raspberry Pi makes a network printer for the whole house. Install CUPS with sudo apt install cups, enable it, and configure the printer through your browser at localhost:631. The Pi Foundation’s documentation walks through every step.

Automating homework backups with rsync

The rsync command copies only what has changed, making it perfect for regular backups. A simple line such as rsync -av ~/Documents/Homework /media/usb/HomeworkBackup/ keeps a mirror of a child’s schoolwork on a USB stick. Add it to a cron job and it runs automatically each evening.

Building a simple website with Python

Python is pre-installed on most distributions and on Raspberry Pi OS. A five-line script using the built-in HTTP server lets you share a folder of files across your home network — a fun way for students to publish a class project without paying for hosting.

Where to Get Help and Keep Learning

Nobody memorises everything, and you don’t need to.

Using man and –help

Type man ls to read the manual page for a command, or ls --help for a quick summary. These built-in resources answer most questions instantly.

Online communities and UK user groups

The Ubuntu UK forums, the Linux Mint forums, and the Raspberry Pi Foundation’s free learning resources are all excellent. We also recommend finding a local Linux user group — most UK cities have one, and members are famously generous with their time.

FAQ

Do I need to know the command line to use Linux?

No. Ubuntu UK, Linux Mint, and Raspberry Pi OS all work perfectly well with a mouse. But learning a few commands makes you faster and more confident when something goes wrong.

What happens if I type the wrong command?

Usually nothing dramatic. Most commands will report an error and stop. The main exception is rm, which deletes permanently, so always check your typing before pressing Enter.

Is the terminal the same on Ubuntu, Linux Mint, and Raspberry Pi?

Largely yes. The core commands are identical across all three. Differences appear mainly in package management, where Ubuntu uses apt and snap, Linux Mint uses apt, and Raspberry Pi OS uses apt.

How long does it take to get comfortable?

Most people we’ve taught feel reasonably at ease after a fortnight of regular, small practice. Start with navigation and file management, then add software installation.

Can children use the command line safely?

Yes, with supervision. Scratch on Raspberry Pi is a gentle introduction, and simple file commands are a good way to build confidence before moving on to Python.

The command line rewards patience rather than talent. Start with ls, cd, and mkdir on your Ubuntu, Linux Mint, or Raspberry Pi system, add one new command each week, and within a month you’ll wonder how you ever managed without it. Every expert began exactly where you are now — staring at that blinking cursor.

Leave a Reply

Your email address will not be published. Required fields are marked *