Skip to content

Arch Linux Commands & Helpful Content

Lean's edited this page Feb 10, 2024 · 41 revisions

Locations

sddm theme location

  • /usr/share/sddm/themes/

xfce theme location

  • ~/.local/share/themes Theme
  • ~/.icons Icons & Cursor

GRUB config file location

  • /etc/default/grub

Commands

Uncompress

  • tar -xvf

Packages Installations

  • makepkg -sic

View Folder Size

  • du -ah --max-depth 1

View disk available

  • df -h

View public ip from your router

  • curl ipinfo.io/ip

Pacman

Show a list of non official packages

  • sudo pacman -Qm

Reinstall all the packages of main repository

  • sudo pacman -Qqn

Remove all usseless dependencies

  • sudo pacman -Qtdq | sudo pacman -Rns -

Clear Cache

  • sudo pacman -Scc

Force remove package

  • sudo pacman -Rdd

Remove package with configs/dependencies

  • sudo pacman -Rns

Force Installing

  • sudo pacman -S package --overwrite *

Run program after boot

  • sudo vim /etc/systemd/system/myscript.service/
[Unit]
Description=This will run after Boot

[Service]
Type=simple
ExecStart=[program location]
  • systemctl enable myscript.service

Give folder permissions

  • chmod o=rwx *

Give folder owner

  • sudo chown -R Person *
  • sudo chgrp -R Person *

Change grub order

  • sudo vim /etc/default/grub
  • GRUB_DEFAULT="2"

Update-grub

Show Windows in grub

  • sudo vim /etc/default/grub
  • #GRUB_DISABLE_OS_PROBER=false
  • update-grub

Updating discord

Download the update

Uncompress

  • tar -xvf discord.tar.gz

Manually installing

  • sudo cp -r Discord/* /opt/discord/

Giving access to you

  • sudo chmod +rwx /opt/discord/discord.desktop

Creating a link to default discord shortcuts access

  • sudo ln -s /opt/discord/ /usr/share/

Formating a disk

List the disks

  • fdisk -l

Select the disk you want to format

  • fdisk /dev/sd?
  • o, n, default...

Save

  • w

Add signature to linux read

  • sudo mkfs.ext4 /dev/sd??

Give Permissions

  • sudo chown -R person /run/media/person/diskID
  • sudo chgrp -R person /run/media/person/diskID

Disable Lapto/Notebooks Lid Close Suspension

  • sudo vim /etc/systemd/logind.conf
  • Remove # and change to "ignore"
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
  • systemctl restart systemd-logind

Clone this wiki locally