There won’t be a more important soft skill to learn in 2026 than Bash.
An excellent way to evolve your skills is to download and install Arch Linux, which is the best option in terms of optimization, customization, and compatibility.
With the commands below, you will be able to install Arch Linux without using the archinstall command.
Download the Arch Linux ISO
| Brazilian servers to download the .iso:
Basic commands used during mounting
| Command | Function |
|---|---|
| ls | Lists files and directories in the current directory |
| cd | Changes the current directory |
| lsblk | Lists block devices (disks, SSDs, partitions) and mount points |
| mount | Mounts a filesystem to a directory |
| rm -rf | Forcefully and recursively removes files and directories |
| mkdir | Creates directories |
| cat | Displays the contents of text files or concatenates files |
| systemctl | Manages systemd services (start, stop, enable at boot) |
| echo | Prints text to the terminal or writes text to files with redirection |
| shutdown | Shuts down or restarts the system |
| exit | Ends the current shell session |
Increase terminal font size
setfont ter-132b
Set the keyboard to ABNT-2
loadkeys br-abnt2
Result:
Testing internet connection (wired)
ping -c 3 archlinux.org
If you are using Wi-Fi, look up additional instructions.
Check if the system booted in EFI mode
ls /sys/firmware/efi
If the directory does not exist, the system was booted incorrectly.
Listing all HDDs/SSDs on the machine
lsblk
Result:
Select the device where Arch Linux will be installed
cfdisk /dev/sda
When asked to choose the partition table type, select
gpt.
- First partition:
256m - Second partition:
10g - Third partition:
15g - Fourth partition: use the remaining space
Megabytes are represented by
mand gigabytes byg.
After that, just select Write, type yes, and then choose Quit.
Partitions
There will be 4 partitions:
- 1st:
256m, typeEFI System - 2nd:
20g, typeLinux filesystem - 3rd:
25g, typeLinux filesystem - 4th: remaining space, type
Linux swap
Then select Write, type yes, and click Quit.
lsblk
Result:
This command displays a clear, hierarchical (tree-like) view of your storage devices, such as:
- Hard drives (HDDs/SSDs)
- Partitions
- Logical volumes (LVM)
- CD/DVD devices (ROMs)
- USB drives and other removable media
📂 Formatting partitions
mkfs.fat -F32 /dev/sda1
Result:
mkfs.ext4 /dev/sda2
Result:
mkfs.ext4 /dev/sda3
Result:
mkswap /dev/sda4
Result:
📌 Mounting partitions
mount /dev/sda2 /mnt
mkdir /mnt/home
mkdir /mnt/boot
mkdir /mnt/boot/efi
ls /mnt
Result:
mount /dev/sda3 /mnt/home
mount /dev/sda1 /mnt/boot/efi
swapon /dev/sda4
🚀 Base system installation
lsblk
Result:
pacman -Sy
pacman -S reflector
reflector --country Brazil --latest 20 --sort rate --verbose --save /etc/pacman.d/mirrorlist
Result:
nano /etc/pacman.d/mirrorlist
Result:
pacstrap /mnt base base-devel linux linux-headers linux-firmware nano vim
🧾 Generate fstab
genfstab /mnt
Result:
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
Result:
Make sure this information was written correctly.
ls /mnt
Result:
🔐 Enter the installed system
arch-chroot /mnt
Result:
nano /etc/pacman.conf
Remove the comments from Color, increase ParallelDownloads from 5 to 10,
and inside [multilib] remove the comment from Include. Save and exit.
Result:
🕒 Timezone
ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
hwclock --systohc
timedatectl set-ntp true
date
Result:
🌍 Language
nano /etc/locale.gen
Result:
Select the language you want for your system. I chose
pt_BR.UTF-8 UTF-8.
locale-gen
Result:
echo "LANG=pt_BR.UTF-8" >> /etc/locale.conf
Verify:
nano /etc/locale.conf
Result:
⌨️ Keyboard
echo "KEYMAP=br-abnt2" >> /etc/vconsole.conf
Verify:
nano /etc/vconsole.conf
Result:
🖥️ Hostname
echo "archlinux" >> /etc/hostname
Verify:
nano /etc/hostname
Result:
nano /etc/hosts
Result:
🔑 Users and permissions
passwd
Result:
Be very careful when editing this file, as it can break the entire system
nano /etc/sudoers
Result:
Remove the comment only from
%wheel ALL=(ALL:ALL) ALL.
Choosing a username
useradd -mG wheel (choose a username)
Creating the user password
passwd (username)
Result:
🧰 Bootloader and network
| Package | Description |
|---|---|
| dosfstools | Tools to create and check FAT filesystems (FAT16/FAT32), mainly for EFI |
| mtools | Tools to access and manipulate FAT filesystems without mounting them |
| os-prober | Detects other operating systems to add them automatically to GRUB |
| networkmanager | Manages network connections (Wi-Fi, Ethernet, VPN) |
| grub | GRand Unified Bootloader, responsible for booting the OS |
| efibootmgr | Tool to manage UEFI boot entries directly from firmware |
pacman -S dosfstools mtools os-prober networkmanager grub efibootmgr
Pay close attention when typing these commands. Any error may require reinstalling everything.
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=archlinux --recheck
Result:
If you are doing a dual boot with Windows
nano /etc/default/grub
Result:
Uncomment the line
GRUB_DISABLE_OS_PROBER=false.
grub-mkconfig -o /boot/grub/grub.cfg
Result:
systemctl enable NetworkManager
Result:
🔄 Final steps
exit
Result:
shutdown -r now
🎉 Arch Linux installed successfully!
Now you have a clean, fast system that is fully under your control.
However, you still need to follow another guide to install a window manager or desktop environment such as KDE Plasma or Hyprland.






























Top comments (0)