Een dotfile is een configuratiebestand of -map waarvan de naam begint met een punt (.). Op Linux verbergt ls deze bestanden standaard — ze zijn bedoeld als achtergrondconfiguratie, niet als dagelijkse gebruiksbestanden.
| Bestand | Doel |
|---|---|
~/.bashrc | Configuratie voor interactieve bash-sessies |
~/.profile | Inlogscript (ook voor andere shells) |
~/.ssh/config | SSH-verbindingsinstellingen |
~/.gitconfig | Git-gebruikersinstellingen |
~/.vimrc | Vim-editor configuratie |
~/.config/ | Map met configuraties van grafische programma's (XDG-standaard) |
ls -a ~ # alle bestanden inclusief dotfiles
ls -la ~ # met details
Veel gebruikers bewaren hun dotfiles in een Git-repository om ze makkelijk te synchroniseren tussen machines. Symlinks vanuit de thuismap naar de repository houden alles op één plek.