All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

modetc: A Linux Kernel Module for Relocating Dotfiles While Maintaining Compatibility

By

todsacerdoti

4mo ago· 5 min readen

Summary

modetc is a Linux kernel module that allows users to move dotfiles and other files to different locations while maintaining compatibility with programs that expect them in their original paths. It works by rewriting file operation paths at the kernel level, primarily targeting programs that don't follow the XDG basedir standard and clutter home directories. The article presents this as a 'nuclear option' for managing dotfiles, with configuration done through module parameters.

Key quotes

· 5 pulled
modetc is a Linux kernel module that rewrites paths in file operations: it allows you to move files wherever you like, while still having programs finding them where they expected them to be.
The main application is to move the dotfiles of those stubborn programs that refuse to adopt the XDG basedir standard, away from the home directory.
For example, you can rewrite the path ~/.ssh to ~/var/lib/ssh.
Yes, this is the nuclear option.
modetc is configured via module parameters that are set either when manually loading the module.
Snippet from the RSS feed
Move your dotfiles from kernel space

You might also wanna read