# 10 Arch Linux terminal commands every EndeavourOS user should know

Canonical: https://kextcache.com/unlock-the-potential-of-endeavouros-10-essential-terminal-commands-for-optimal-linux-performance/
Published: 2023-10-29T15:22:14+05:30
Updated: 2023-10-30T00:59:06+05:30
Author: Aradhya Chaudhary

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](https://github.com/Jguer/yay) lists it as an alias for `yay -Syu`. Run it as your normal user; it asks for your sudo password when it needs one.

```
yay -Syu
```

![yay -Syu syncing the core, extra, community and multilib databases after endeavouros.db failed to download](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-14-07-38.png)

## 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](https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Removing_unused_packages_%28orphans%29) pipes the list into `pacman -Rns`:

```
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](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-14-13-29.png)

## 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.

```
journalctl -xe
```

![journalctl -xe showing systemd start jobs with their catalog explanations](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-14-17-56.png)

## 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](https://man.archlinux.org/man/reflector.1) sorts HTTPS mirrors by download rate and saves the list. Replace France,Germany with countries near you:

```
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](https://wiki.archlinux.org/title/Reflector) 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](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-14-53-26.png)

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](https://github.com/endeavouros-team/PKGBUILDS/tree/master/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:

```
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](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-16-33-28.png)

## 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](https://archlinux.org/packages/extra/x86_64/irqbalance/), so install it with pacman, then enable and start the service:

```
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](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-22-34-34.png)

Enabling the service creates its symlink:

![sudo systemctl enable irqbalance creating the irqbalance.service symlink](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-22-59-43.png)

To check that it's running:

```
sudo systemctl status irqbalance
```

![irqbalance.service active (running) on 28 Oct 2023, with a warning that thermal events failed to initialize](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-00-42.png)

## 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](https://archlinux.org/packages/extra/x86_64/iperf3/). Install it on both machines:

```
sudo pacman -S iperf3
```

Start it in server mode on one machine:

```
iperf3 -s
```

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

```
iperf3 -c server-ip
```

![sudo yay -S iperf3 installing iperf3 3.15-1 and lksctp-tools from the extra repo](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-14-45.png)

## 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:

```
du -sh ~/Downloads
```

![du -sh ~/Downloads reporting 2.4G](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-23-46.png)

## 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](https://aur.archlinux.org/packages/neofetch)), and its [GitHub repository](https://github.com/dylanaraps/neofetch) is archived. [fastfetch](https://archlinux.org/packages/extra/x86_64/fastfetch/), in the extra repository, does the same job:

```
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](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-31-41.png)

![neofetch on EndeavourOS: HP Laptop 15s, AMD Ryzen 3 3250U, kernel 6.3.1-zen1, GNOME 44.1](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-34-23.png)

## 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](https://man.archlinux.org/man/swapon.8) calls that output format deprecated in favour of `--show`.

```
swapon --show
```

![swapon -s showing the swap partition /dev/nvme0n1p3, about 2 GiB of 8.8 GiB in use](/wp-content/uploads/2023/10/Screenshot-from-2023-10-28-23-42-19.png)

## Next steps

If something goes wrong, see our guide to [troubleshooting common issues on Arch Linux](/troubleshooting-common-issues-on-arch-linux/). To tune the desktop next, read [how to upgrade your KDE Plasma workflow](/upgrade-kde-plasma-workflow-in-arch-linux/). For games, set up [GameMode on Arch Linux and EndeavourOS](/gamemode-setup-gaming-environment-on-arch-linux/).

<a class="embed-card" href="/guide-make-kde-plasma-look-like-macos-big-sur/">Make KDE Plasma look like macOS Big Sur</a>
