$ benou docs

Personal documentation and knowledge base

Config files

#system #config #paths

Lookup of common configuration file paths by area.

System

PathPurpose
/etc/hostnamesystem hostname
/etc/hostsstatic hostname → IP
/etc/locale.confsystem locale (LANG, LC_*)
/etc/locale.genavailable locales (uncomment then locale-gen)
/etc/vconsole.confvirtual console keymap + font
/etc/timezonetimezone (symlink target)
/etc/localtimesymlink → /usr/share/zoneinfo/...
/etc/machine-idunique machine identifier
/etc/os-releasedistribution identification
/etc/sysctl.confkernel parameters (legacy)
/etc/sysctl.d/*.confkernel parameters (drop-in, preferred)
/etc/environmentsystem-wide env (simple KEY=VALUE)
/etc/profilelogin shell init (all users)
/etc/profile.d/*.shdrop-in login scripts
/etc/bash.bashrcsystem-wide bash interactive config
/etc/motdmessage-of-the-day (post-login)
/etc/issuepre-login message

Boot & bootloader

PathPurpose
/boot/loader/loader.confsystemd-boot main config
/boot/loader/entries/*.confsystemd-boot entry files
/etc/mkinitcpio.confinitramfs config (hooks, modules, files)
/etc/mkinitcpio.d/*.presetinitramfs presets
/etc/cmdline.d/*.confkernel cmdline fragments
/etc/modprobe.d/*.confmodule options + blacklists
/etc/modules-load.d/*.confmodules to auto-load at boot
/proc/cmdlinecurrent kernel command line

Pacman & packages

PathPurpose
/etc/pacman.confpacman config
/etc/pacman.d/mirrorlistmirror URLs (order = priority)
/etc/pacman.d/gnupg/pacman GPG keyring
/etc/makepkg.confmakepkg build config
/var/cache/pacman/pkg/package cache
/var/lib/pacman/pacman database
/var/log/pacman.logtransaction log

Network

PathPurpose
/etc/resolv.confDNS resolver (often managed)
/etc/nsswitch.confresolution order
/etc/NetworkManager/NM main config
/etc/NetworkManager/system-connections/saved profiles (WiFi PSKs)
/etc/systemd/network/*.networknetworkd config
/etc/systemd/network/*.netdevnetworkd virtual devices
/etc/systemd/resolved.confresolved config
/etc/nftables.conffirewall rules
/etc/iproute2/rt_tablesrouting table names

Authentication & security

PathPurpose
/etc/passwduser accounts
/etc/shadowpassword hashes + expiry
/etc/groupgroup definitions
/etc/gshadowgroup password hashes
/etc/sudoerssudo rules (edit with visudo)
/etc/sudoers.d/drop-in sudo rules
/etc/pam.d/PAM config per service
/etc/security/limits.confresource limits
/etc/security/faillock.conflogin lockout
/etc/security/pwquality.confpassword rules
/etc/login.defslogin defaults
/etc/skel/new home dir template
/etc/ssh/sshd_configSSH server config
/etc/ssh/sshd_config.d/SSH server drop-ins
/etc/polkit-1/polkit rules

Services & systemd

PathPurpose
/usr/lib/systemd/system/package units (don’t edit)
/etc/systemd/system/admin units + overrides
~/.config/systemd/user/per-user units
/etc/systemd/system.confsystem manager config
/etc/systemd/user.confuser session config
/etc/systemd/journald.confjournal logging
/etc/systemd/logind.conflogin manager (lid, power, idle)
/etc/systemd/timesyncd.confNTP time sync
/etc/systemd/resolved.confDNS resolver
/etc/systemd/coredump.confcore dump handling
/etc/tmpfiles.d/*.confadmin tmpfiles rules
/usr/lib/tmpfiles.d/*.confpackage tmpfiles rules

Shell configuration

PathPurpose
~/.bashrcbash interactive
~/.bash_profilebash login
~/.bash_logoutbash logout
~/.zshrczsh interactive
~/.zprofilezsh login
~/.zshenvzsh env (always loaded)
~/.inputrcreadline (bindings, completion)
~/.profilegeneric login fallback
/etc/shellsvalid login shells (used by chsh)
~/.local/share/bash-completion/user bash completions

Logging

PathPurpose
/var/log/log directory
/var/log/pacman.logpacman transactions
/var/log/Xorg.0.logX server log
/var/log/journal/systemd journal persistent storage
/var/log/wtmplogin records (last)
/var/log/btmpfailed logins (lastb)
/var/log/lastloglast login per user (lastlog)

XDG directories

VariableDefaultPurpose
XDG_CONFIG_HOME~/.configconfiguration
XDG_DATA_HOME~/.local/sharedata
XDG_STATE_HOME~/.local/statestate (logs, history)
XDG_CACHE_HOME~/.cachecache (safe to delete)
XDG_RUNTIME_DIR/run/user/$UIDruntime (sockets, PIDs)

Hardware & devices

PathPurpose
/etc/fstabmount table
/etc/crypttabLUKS encrypted volumes
/etc/udev/rules.d/custom udev rules
/usr/lib/udev/rules.d/package udev rules
/etc/X11/xorg.conf.d/X server config fragments
/sys/kernel device interface (sysfs)
/proc/process + kernel info (procfs)

Application

PathPurpose
~/.ssh/configSSH client
~/.ssh/authorized_keysaccepted public keys
~/.ssh/known_hostsknown host fingerprints
~/.gitconfiggit config
~/.config/git/configgit config (XDG path)
~/.gnupg/GPG keyring
/etc/docker/daemon.jsondocker daemon