Community-driven coverage of elementary OS — news, guides & forums
Dark abstract low-poly geometric landscape with layered triangular facets in deep navy, charcoal, and muted teal, illuminated by a soft electric-blue glow near the horizon

News roundups, tutorials, application guides, and forums — built by users, for users of the elegant Linux distribution.

elementary weekly
#20
Latest roundup · 18 Apr 2015
Freya Release
Final
Covered in weekly #19 & #20
Forum Topics
Active
Installation, customization & more

A practical first tour of the elementary OS terminal

An elementary OS terminal is a direct route to the operating system’s command-line tools. The window may resemble a black rectangle, but the important parts are a prompt, a shell, and the text you type. The shell reads each instruction, checks it, and passes work to programs such as ls, apt, or grep. You do not need to memorise every option before using it; a small set of navigation, file, search, and maintenance commands quickly handles everyday work.

Using elementary OS’s terminal becomes much less intimidating when every command has a clear purpose. Paths show where a file lives, options adjust behaviour, and documentation is built into the system. The examples below use Australian English spelling and cover habits useful on an Australian desktop, from checking a laptop’s wireless hardware to managing updates over home or mobile internet. Keep the graphical apps nearby: the terminal and elementary’s desktop are complementary tools.

Reading the terminal and system identity

A terminal window is a container for a shell. The prompt normally ends with a dollar sign, which tells you that the shell is ready for another command; you do not type the dollar sign itself. Start with pwd to print the current working directory, ls to list its contents, and cd to change directory. clear wipes the visible screen, while Ctrl+L does the same without starting a separate command.

Commands generally consist of a program name, optional options, and arguments. ls -la combines the l option for detailed information with the a option for hidden files. Use Tab to complete filenames, the arrow keys to revisit earlier commands, and Ctrl+R to search command history. Ctrl+C interrupts a command that is taking too long. Quotation marks are important when an argument contains spaces, as in cd "My Documents".

Check the machine rather than assuming its version from an article. uname -a shows the kernel and system architecture, cat /etc/os-release identifies the installed release, and hostnamectl provides broader system information. Online coverage can blur stable and experimental software: a Windows Insider preview belongs to Microsoft’s test programme and cannot reveal the elementary OS build on your computer. Australian time zones add another detail; date and timedatectl show the configured zone, which may differ from Sydney, Melbourne, Brisbane, Perth, Adelaide, or the city you actually use.

Navigating and organising files

Every file has a path describing its location within the filesystem. An absolute path begins with /, while a relative path starts from the current directory. The tilde, ~, represents your home directory. .. means the parent directory and . means the current one, so cd .. moves upward and cd ~/Pictures returns to a known location. Run pwd whenever you lose track of where you are.

ls -la is useful when the directory contains hidden configuration files whose names begin with a dot. Create new directories with mkdir, and combine it with -p to make a complete hierarchy in one operation: mkdir -p ~/Documents/elementary/notes. The touch command creates an empty file or updates a file’s modification time. To edit text, use nano filename if it is installed, or open the same file with another text editor. In Nano, Ctrl+O saves and Ctrl+X exits.

A clear naming scheme prevents command-line clutter. Short names are easy to type, while descriptive names help when files are searched later. Avoid punctuation that requires special handling, but remember that spaces are valid when filenames are quoted. The Files application remains useful for visual inspection, dragging items into place, and recognising unfamiliar file types. The terminal becomes preferable when creating several directories, renaming many files, or working with a precise path copied from documentation.

Copying, moving and deleting safely

The basic cp command copies one file to another location, while mv moves or renames it. The first argument is the source and the second is the destination, as in cp report.pdf ~/Documents/ or mv notes.txt notes-old.txt. Add -i when copying over an existing file to request confirmation. Wildcards can select several files, but they also widen the scope of a command, so check the result with ls before proceeding.

Deletion needs more care. rm file.txt removes a file without sending it to the graphical Trash, and rm -i asks before each deletion. rmdir removes an empty directory, while gio trash can move suitable items into the Trash where desktop integration is available. Never add sudo merely to overcome a permission error involving a personal file; it may indicate that the path is wrong. A wildcard combined with sudo can remove a much larger set of files than intended.

If you intend to replace Windows on a laptop bought through JB Hi-Fi, Harvey Norman, Officeworks, or another Australian retailer, work through the driver conversion checklist before altering the disk. Back up important files, test Wi-Fi, audio, graphics, suspend, and battery behaviour, and confirm that Windows recovery or another installer remains accessible. lsblk shows attached storage devices, while rsync can copy a carefully selected directory to an external drive. Keep the original data until the new installation has been tested.

Viewing and searching file contents

Use cat filename for a short text file. For longer material, less filename provides scrolling without loading the entire file into the terminal. Press / to search within less, n to move to the next match, and q to quit. head displays the beginning of a file, tail displays the end, and tail -f follows new lines as they arrive. The wc -l command counts lines, which is often the quickest way to check a configuration file’s size.

grep searches text for matching patterns. grep -in "network" setup.conf performs a case-insensitive search and includes line numbers, while grep -R searches directories recursively. The pipe character, |, sends the output of one command into another: grep -i "error" application.log | less combines search and controlled viewing. find locates files by attributes, such as find ~/Documents -type f -iname "*.pdf", which finds PDF files regardless of letter case without opening each one.

System messages live in logs rather than ordinary documents. journalctl --since today shows recent journal entries, and journalctl -u NetworkManager --since "10 minutes ago" narrows the view to a service when that service is relevant. Some dmesg entries require elevated privileges. Built-in help is usually faster than guessing: man command opens the manual, command --help lists common options, and apropos keyword searches manual descriptions. Reading the relevant section before using an unfamiliar option prevents most accidental changes.

Installing software and keeping the system current

Ubuntu-derived distributions such as elementary OS use the APT package system. Run sudo apt update to refresh the package index, then install a program with a command such as sudo apt install vlc. The update step fetches metadata; it does not upgrade every installed package. Use sudo apt upgrade to apply available upgrades, and apt list --installed or apt-cache policy package-name to inspect what is present. sudo apt remove package-name removes a package, although its configuration files may remain.

elementary’s AppCenter and Flatpak packages provide an alternative route. flatpak list shows installed Flatpaks, flatpak search application searches available software, and flatpak remotes lists configured repositories. Install Flathub applications only after adding the official remote according to current elementary OS documentation. APT and Flatpak can contain different versions of the same application, so check the source before diagnosing a missing feature or updating one package.

Connection quality matters across Australia. A home NBN connection, fixed-wireless service, regional link, café Wi-Fi network, or mobile hotspot can behave very differently when downloading updates. A package download may consume a substantial portion of a capped mobile plan. Check the network with ping before beginning a large update, and avoid interrupting apt midway through unpacking packages. Public Wi-Fi is not a reason to bypass package signatures or run an unfamiliar installation script, regardless of the site providing the command.

Managing permissions, users and processes

File permissions determine who may read, write, or execute a file. The output from ls -l shows the owner, group, and permission flags for each entry. chmod u+x script.sh makes a script executable by its owner, while common numeric modes include 644 for a readable file and 755 for an executable one. chown changes ownership and normally requires sudo; use it carefully because incorrect ownership can prevent you from editing your own files later.

The sudo command runs a single program with administrative authority. whoami identifies the current user, id shows the associated groups, and sudo -v refreshes an existing authentication period. Avoid using sudo su for routine work because it leaves you in a root shell where mistakes have broader consequences. To inspect activity, use ps, top, or pgrep. If a process must be stopped, kill PID requests a graceful exit; reserve kill -9 for a process that has already ignored the normal termination signal.

Command history can expose more than intended. A password entered at a password prompt is normally absent from shell history, yet access tokens inside a curl command, personal filenames, or pasted text can remain there. Australian organisations covered by the Privacy Act 1988 must manage personal information under the Australian Privacy Principles, so terminal output and retained history may need to follow the same controls as other sensitive records. In Bash, history displays stored commands, history -c clears the current history, and unset HISTFILE prevents that shell from saving further entries.

Building a practical everyday workflow

Begin routine checks with uptime, df -h, free -h, and lsblk. They reveal load, free disk space, memory use, and storage devices without opening several graphical panels. Linux often uses available memory for caching, so the figure reported by free may change immediately after an application closes. When storage is low, inspect old downloads and package caches before deleting unfamiliar directories. Preview automatic package cleanup with apt-get --dry-run autoremove, then run the removal only after reviewing the proposed changes.

For network problems, nmcli general status shows NetworkManager’s view of the connection, nmcli device wifi list lists visible wireless networks, and ip -brief address displays assigned addresses. A short test such as ping -c 3 one.one.one.one checks basic connectivity, while curl -I https://elementary.io tests an HTTPS response. These checks separate Wi-Fi association, name resolution, and internet access. On café or airport Wi-Fi, use a trusted VPN where appropriate and avoid entering administrator credentials into a network you cannot verify.

A reliable troubleshooting sequence is to note the exact error, identify the command that produced it, read man or --help, and inspect the relevant log. Save useful output in a text file so it remains available while another command is run. The elementary OS community forums are particularly helpful when the error mentions a driver, boot service, Flatpak, or display issue because other users may have encountered the same hardware combination. Keep each test small so its effect can be identified.

Start with pwd, ls, cd, less, grep, and sudo apt update; learn the options for each command before combining them, and treat destructive operations and downloaded scripts with the same care expected of any system-wide change.

Browse the News Archive
Latest Updates

From the elementary weekly series

Low-poly faceted abstract render in dark charcoal and electric blue tones, suggesting a news bulletin or announcement
elementary news

elementary weekly #20

The first week with the final Freya release — community reactions, tips, and early impressions gathered in one roundup.

Abstract low-poly geometric scene in midnight blue and soft cyan, conveying a live broadcast or event atmosphere
elementary news

elementary SPECIAL

A live Hangouts event with the elementary OS founders, held on 11 April 2015, discussing the Freya final release.

Low-poly faceted render in deep navy and muted teal with subtle amber highlights, suggesting a tutorial or guide
Tips and Tricks

Timeshift Guide

How to use Timeshift — the intuitive system restore utility for elementary OS — to recover from configuration mishaps.

Explore

Topics & Resources

Dive into guides, application recommendations, and community discussions covering every aspect of elementary OS.