Linux
Arch system maintenance!
- Disk usage
- Clean dependencies:
# For recursively removing orphans and their configuration files:
pacman -Qdtq | pacman -Rns -
# Removing other unneeded packages, ie. dependency cycles
pacman -Qqd | pacman -Rsu -
iwd connect to network
iwctl
[#iwd] device list \\ Identify wireless device name
[#iwd] device {name} set-property Powered on \\ Turn on device
[#iwd] adapter {adapter} set-property Powered on \\ Turn on adapter
[#iwd] station {name} scan \\ Scan for networks
[#iwd] station {name} get-networks \\ ...
[#iwd] station {name} connect {ssid} \\ ...
Monitoring tools
btop: general monitor iftop: network monitor nvtop: gpu usage monitor
Formatting devices
df # 1. Identify drive
sudo umount /dev/[device] # 2. Unmount drive
sudo mkfs.[format:vfat|ntfs|exfat] /dev/[device] # 3. Format
sudo fsck /dev/[device] # 4. Verify
Audio
pactl list short sink # show output devices
pactl set-default-sink # set output device
Resources
Glossary
fstab: It's the Linux system's file system table. Enables automatic mounting of fs on system boot