Linux

10 Arch Linux terminal commands every EndeavourOS user should know

Linux4 min read

Updated

By Aradhya Chaudhary

On this page
neofetch output on a laptop screen running Debian, with the Debian swirl logo beside the system details

These ten terminal commands cover most day-to-day upkeep on EndeavourOS, which is based on Arch Linux:

  1. yay -Syu updates every installed package, AUR packages included.
  2. pacman -Qdtq lists orphaned packages you can remove.
  3. journalctl -xe shows the newest entries in the system log.
  4. reflector ranks the fastest Arch mirrors.
  5. systemctl starts, stops and restarts services.
  6. irqbalance spreads hardware interrupts across CPU cores.
  7. iperf3 tests network speed between two machines.
  8. du -sh shows how much space a folder uses.
  9. neofetch, or fastfetch today, prints system information.
  10. swapon shows your swap space.

The screenshots come from the author’s EndeavourOS laptop on 28 Oct 2023 (GNOME 44.1, kernel 6.3.1-zen1), and the commands they show ran there. The other commands (the orphan removal pipe, the pacman installs, the reflector example, iperf3 -s, fastfetch and swapon --show) come from the official docs and package pages linked in each section, checked on 18 Nov 2026. We have not run those.

1. Update the system: yay -Syu

yay -Syu syncs the package databases and upgrades every installed package, including the ones from the AUR. Typing yay on its own does the same thing: yay’s README lists it as an alias for yay -Syu. Run it as your normal user; it asks for your sudo password when it needs one.

text
yay -Syu

yay -Syu syncing the core, extra, community and multilib databases after endeavouros.db failed to download

2. Find orphaned packages: pacman -Qdtq

pacman -Qdtq lists orphans: packages that were installed as dependencies and that nothing needs any more. It only lists them. To remove them with their configuration files, the Arch wiki pipes the list into pacman -Rns:

text
pacman -Qdtq | sudo pacman -Rns -

Read the list before you remove anything. The wiki warns that this can also remove packages that are optional dependencies of software you are keeping.

pacman -Qdtq listing orphaned packages such as boost, clang, cmake, go and rust

3. Read the system log: journalctl -xe

journalctl -xe opens the systemd journal at its newest entries, which is where to look when something has just failed. The -e flag jumps to the end of the journal, and -x adds explanations from the message catalog to the entries that have one.

text
journalctl -xe

journalctl -xe showing systemd start jobs with their catalog explanations

4. Rank the fastest mirrors: reflector

reflector picks Arch Linux mirrors and writes them to /etc/pacman.d/mirrorlist, so package downloads and updates come from faster servers. This example from the reflector manual sorts HTTPS mirrors by download rate and saves the list. Replace France,Germany with countries near you:

text
sudo reflector --country France,Germany --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist

Back up /etc/pacman.d/mirrorlist first, as the Arch wiki advises. The wiki also says filtering by country is usually not a good idea, because a single country has only so many mirrors.

The 2023 screenshot shows what a wrong flag does: reflector rejected --IN 91 as an unrecognized argument. Its usage line names the right one, -c <country name or code>.

reflector rejecting the unrecognized argument --IN 91 and printing its usage, including -c country name or code

reflector only ranks the Arch mirrors. EndeavourOS’s own packages come from a separate list, /etc/pacman.d/endeavouros-mirrorlist, and EndeavourOS ranks that one with its own tool, eos-rankmirrors. It’s the list to check when endeavouros.db fails to download, as in the first screenshot.

5. Start, stop and restart services: systemctl

systemctl manages systemd services. Replace sshd with the service you want:

text
sudo systemctl start sshd
sudo systemctl stop sshd
sudo systemctl restart sshd

sudo asks for your password first. When start and stop succeed they print nothing, as the screenshot shows.

sudo systemctl start sshd and sudo systemctl stop sshd finishing with no output

6. Spread interrupts across CPU cores: irqbalance

irqbalance balances hardware interrupts (IRQs) across CPU cores, which can improve performance on multi-core systems. It’s in Arch’s extra repository, so install it with pacman, then enable and start the service:

text
sudo pacman -S irqbalance
sudo systemctl enable irqbalance
sudo systemctl start irqbalance

Our 2023 screenshot installs it with sudo yay -S irqbalance. That works, but yay prints “Avoid running yay as root/sudo.” For a package in the official repositories, pacman is all you need.

sudo yay -S irqbalance installing extra/irqbalance 1.9.2-1, with yay's warning to avoid running it as root

Enabling the service creates its symlink:

sudo systemctl enable irqbalance creating the irqbalance.service symlink

To check that it’s running:

text
sudo systemctl status irqbalance

irqbalance.service active (running) on 28 Oct 2023, with a warning that thermal events failed to initialize

7. Test network speed: iperf3

iperf3 measures network bandwidth between two machines, which helps you diagnose network performance problems. It’s in the extra repository. Install it on both machines:

text
sudo pacman -S iperf3

Start it in server mode on one machine:

text
iperf3 -s

Then connect from the other, using the first machine’s IP address:

text
iperf3 -c server-ip

sudo yay -S iperf3 installing iperf3 3.15-1 and lksctp-tools from the extra repo

8. See how much space a folder uses: du -sh

du -sh prints the total size of one directory, which helps you find what is filling your disk. To check your Downloads folder:

text
du -sh ~/Downloads

du -sh ~/Downloads reporting 2.4G

9. Show system information: neofetch or fastfetch

neofetch prints your distribution’s logo next to your system details, from the OS and kernel to the CPU, GPU and memory. When we checked on 18 Nov 2026, neofetch was no longer in Arch’s official repositories (it’s in the AUR), and its GitHub repository is archived. fastfetch, in the extra repository, does the same job:

text
sudo pacman -S fastfetch
fastfetch

In 2023 neofetch was still in extra, as the screenshots show:

sudo yay -S neofetch reinstalling extra/neofetch 7.1.0-2

neofetch on EndeavourOS: HP Laptop 15s, AMD Ryzen 3 3250U, kernel 6.3.1-zen1, GNOME 44.1

10. Check swap space: swapon

Swap is an area on your drive that Linux uses as virtual memory when RAM is full. swapon --show lists your swap devices and how much of each is in use. The swapon -s in the screenshot still works, but its manual page calls that output format deprecated in favour of --show.

text
swapon --show

swapon -s showing the swap partition /dev/nvme0n1p3, about 2 GiB of 8.8 GiB in use

Next steps

If something goes wrong, see our guide to troubleshooting common issues on Arch Linux. To tune the desktop next, read how to upgrade your KDE Plasma workflow. For games, set up GameMode on Arch Linux and EndeavourOS.

Make KDE Plasma look like macOS Big Sur

Written by

Aradhya Chaudhary

Technology enthusiast with a strong experience in open-source contribution. Skilled in Python, DSA (Python, Java and C++), Machine Learning ( NLP ), Deep Learning, Java ( Core ). Pursuing Bachelors of Technology ( B-Tech ) focused on Computer Science from Pranveer Singh Institute of Technology (PSIT).

Comments

No comments yet.

    Read more