Command-line utilities that make Ubuntu easier to use

Ubuntu’s graphical desktop covers most everyday tasks, yet the command line remains one of the quickest ways to inspect a system, find a file, manage software, and understand what is happening behind the scenes. You do not need to become a Linux administrator to benefit from it. A few reliable commands can save time when a menu is slow, a setting is hidden, or a troubleshooting guide assumes terminal knowledge.

The utilities below are useful on Ubuntu Desktop, Ubuntu Server, and many Ubuntu-based distributions. They are included by default or are available through the standard package system, and each solves a practical problem. Once you understand what a command displays and when to use it, terminal work becomes much less mysterious.

Finding help without leaving the terminal

The man utility opens the system’s built-in manual pages. Running man ls, for example, explains the options available for the ls command. You can move through the page with the arrow keys, search by pressing /, and quit with q. Manual pages can feel formal at first, but the synopsis and examples often provide exactly what is needed.

Ubuntu also supports commands such as man -k keyword for searching manual-page descriptions. If you cannot remember the name of a command, try apropos keyword; it searches the same descriptions and suggests related tools. This is a valuable habit because it encourages you to inspect a command before adding unfamiliar options or copying a command from a forum.

A manual page may include options designed for a particular version of Ubuntu, so check the installed documentation rather than relying entirely on an old tutorial. This matters when working across machines in Brisbane, Melbourne, or Perth, where laptops may run different Ubuntu releases or desktop environments.

Inspecting files and folders

The ls utility lists the contents of a directory. The command ls -l adds useful details such as ownership, permissions, file size, and modification time, while ls -la includes hidden files and folders. Hidden configuration directories often begin with a full stop, so ls -la is helpful when investigating application settings in your home directory.

The find utility searches for files according to conditions such as name, type, size, or modification date. For example, find ~/Documents -type f -iname "*.pdf" locates PDF files under Documents without caring whether the extension uses capital letters. Unlike a desktop search tool, find can be precise and repeatable, which makes it useful for scripts and maintenance work.

Be careful with commands that delete results returned by find. First run the search by itself, inspect the output, and only then consider an action such as -delete. This simple pause can prevent the accidental removal of family photos, tax records, or work documents stored on a shared home computer.

Searching text in documents and output

The grep utility searches text for a word or pattern. A command such as grep -n "error" application.log prints matching lines and their line numbers, making it easier to locate a problem. With grep -r, you can search through a directory tree, while grep -i ignores differences between uppercase and lowercase letters.

It becomes especially powerful when combined with another command using a pipe. For example, journalctl -b | grep -i network filters the current boot log so that only lines mentioning the network are shown. Pipes allow one utility to hand its output to another, creating small, understandable workflows instead of requiring a large graphical application.

Regular expressions add advanced matching features, but there is no need to learn them immediately. Start with straightforward searches, use quotation marks around phrases containing spaces, and remember that grep searches content rather than filenames. Pair it with find when you need to locate files and then inspect what those files contain.

Reading long output safely

The less utility displays text one screen at a time. It is ideal for reading a lengthy log, configuration file, or command result without flooding the terminal. Try less /var/log/syslog or send another command into it with dmesg | less. Use the space bar to move forward, b to move back, and /term to search.

Unlike a simple text editor, less is primarily for viewing, so you are unlikely to change a file accidentally. Press q to leave it. This makes it a sensible first choice when examining system output copied from a troubleshooting guide or checking what a package has installed.

You will often see less used with commands that generate many lines, including ip address, systemctl status, and journalctl. On an Ubuntu laptop connected through an NBN service, it can help separate a genuine network issue from a long list of routine diagnostic messages.

Measuring storage before it becomes a problem

The du utility reports how much disk space files and directories use. Running du -sh ~/Downloads gives a human-readable total for the Downloads folder. To compare folders, use du -h --max-depth=1 ~, although the exact options available can vary slightly between implementations.

Large downloads, old virtual machines, browser caches, and several generations of ISO images can quietly consume storage. This is particularly common on modestly sized refurbished laptops, a significant part of the Australian computer market. Finding the largest directories with du is often more useful than deleting random files.

Use du alongside the graphical Storage analyser when you want both detail and convenience. It shows space consumed by files, while the graphical tool may present the same information in an easier visual format. Do not remove items from system directories simply because they are large; investigate their purpose first, and keep backups of personal data before making changes.

Watching programs and system activity

The ps utility provides a snapshot of running processes. ps aux is a widely used form that lists processes for all users, their CPU and memory use, and the command that started them. To find a particular application, you can combine it with grep, as in ps aux | grep firefox, though tools such as pgrep are often cleaner for advanced use.

The top utility provides a continuously updating view of running processes. It helps identify a program consuming excessive CPU or memory and shows the overall load on the system. Press q to quit. On many current Ubuntu installations, htop is also popular because it offers a more readable interface, but it may need to be installed separately.

Process information is useful when a desktop application appears frozen. First identify the program and give it a moment; then consider closing it normally. Commands that terminate processes should be used carefully, particularly when unsaved work is open. On a shared household machine, checking top can also reveal a backup, update, or media conversion that is simply using expected resources.

Downloading resources and maintaining Ubuntu

The curl utility transfers data from a URL and supports common protocols, including HTTPS. A basic command such as curl -O https://example.org/file.zip saves a file using its remote filename. It can also test whether a website responds, inspect HTTP headers, or retrieve data from an API. Always verify the source before downloading executable files or scripts.

When looking for family or school support material online, terminal access does not replace careful human guidance; a useful resource on supporting a bullied child may be more appropriate than an automated download. Treat downloaded documents as untrusted until you know who published them, and avoid entering private information into unfamiliar websites.

The apt utility manages software from Ubuntu’s configured repositories. sudo apt update refreshes the package lists, while sudo apt upgrade installs available updates. To install a program, use sudo apt install package-name; to remove it, use sudo apt remove package-name. The sudo prefix asks for administrator permission, so read the command carefully before entering your password.

Ubuntu’s repositories are generally safer than downloading random installer files from the web, though packages still deserve sensible scrutiny. Australian users should also remember that software use sits within local privacy and copyright expectations, including obligations under the Privacy Act 1988 for organisations handling personal information. Keeping Ubuntu patched helps protect online banking, workplace accounts, and services used across the Australian market, while checking licence terms helps ensure that downloaded software is used lawfully.

These ten utilities work best as a small toolkit rather than isolated tricks. man explains commands, ls and find locate information, grep searches it, and less makes large results readable. du reports storage use, ps and top show active programs, while curl and apt connect your terminal to online resources and Ubuntu’s software system.

Start with read-only commands and practise in your home directory. Use clear paths, inspect output before acting, and be especially cautious with sudo, deletion options, and commands copied from unknown sources. The key thing to remember is that the command line is a precise assistant: understand what it will show or change, then use the smallest command that safely accomplishes the task.