On this page

These ten terminal commands cover most day-to-day upkeep on EndeavourOS, which is based on Arch Linux:
yay -Syuupdates every installed package, AUR packages included.pacman -Qdtqlists orphaned packages you can remove.journalctl -xeshows the newest entries in the system log.reflectorranks the fastest Arch mirrors.systemctlstarts, stops and restarts services.irqbalancespreads hardware interrupts across CPU cores.iperf3tests network speed between two machines.du -shshows how much space a folder uses.neofetch, orfastfetchtoday, prints system information.swaponshows 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.
yay -Syu
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:
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.

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
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:
sudo reflector --country France,Germany --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlistBack 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 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:
sudo systemctl start sshd
sudo systemctl stop sshd
sudo systemctl restart sshdsudo asks for your password first. When start and stop succeed they print nothing, as the screenshot shows.

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:
sudo pacman -S irqbalance
sudo systemctl enable irqbalance
sudo systemctl start irqbalanceOur 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.

Enabling the service creates its symlink:

To check that it’s running:
sudo systemctl status irqbalance
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:
sudo pacman -S iperf3Start it in server mode on one machine:
iperf3 -sThen connect from the other, using the first machine’s IP address:
iperf3 -c server-ip
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
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:
sudo pacman -S fastfetch
fastfetchIn 2023 neofetch was still in extra, as the screenshots show:


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.
swapon --show
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.





Comments
No comments yet.
Report