DOSBox-X puts its main configuration file in your home directory
When you first run DOSBox-X on Linux, it creates a configuration file called dosbox-x.conf in your home directory — the folder that opens when you click your username in the file manager. This is the file that controls how DOSBox-X behaves: which CPU speed it uses, how much memory it allocates, what sound card it emulates, and dozens of other settings.
The exact path is ~/.dosbox-x.conf or /home/yourusername/.dosbox-x.conf. The tilde (~) is shorthand for your home directory. Because the filename starts with a dot, it is a hidden file by default — your file manager will not show it unless you turn on the "show hidden files" option.
If you have never run DOSBox-X before, the file does not exist yet. It gets created the first time you launch the program. If you delete it, DOSBox-X will generate a new one with default settings the next time it starts.
Key Takeaways
- DOSBox-X stores its configuration file as dosbox-x.conf in your home directory, hidden by default because the filename starts with a dot.
- You can view and edit this file with any text editor, and changes take effect the next time you launch DOSBox-X.
- To see hidden files in your file manager, use the keyboard shortcut Ctrl+H or look for a "show hidden files" option in the View menu.
- If you want DOSBox-X to use a different configuration file, you can specify one when you launch the program from the command line.
- Deleting the configuration file will not harm your system — DOSBox-X simply creates a new one with default settings on the next run.
How to find and open the configuration file
Open your file manager and navigate to your home directory. Press Ctrl+H to show hidden files. You should now see .dosbox-x.conf listed among the other files and folders. Right-click it and choose "Open With" and select a text editor — gedit, Kate, or any plain-text editor will work.
If you prefer the command line, open a terminal and type nano ~/.dosbox-x.conf or gedit ~/.dosbox-x.conf. The file opens in your chosen editor, and you can read or change any setting. Save the file when you are done, and the changes take effect the next time you start DOSBox-X.
What settings are in the configuration file
The dosbox-x.conf file is organized into sections marked with square brackets, like [cpu], [mixer], and [render]. Each section controls a different part of how DOSBox-X works. The [cpu] section sets the processor speed and type. The [mixer] section controls audio output. The [render] section handles graphics and display options.
Each setting is a simple line with a name, an equals sign, and a value — for example, rate=44100 sets the audio sample rate to 44,100 Hz. The file includes comments (lines starting with #) that explain what each setting does. If you change a setting and DOSBox-X will not start, you can delete the file and let the program create a fresh one with defaults.
Using a custom configuration file instead of the default
You do not have to use the default location. If you want to keep multiple configuration files for different games or setups, you can create them anywhere and tell DOSBox-X which one to use when you launch it.
From the command line, type dosbox-x -conf /path/to/your/config.conf. Replace /path/to/your/config.conf with the actual path to your configuration file. This is useful if you have one setup for old games that need a slow CPU and another for games that need more speed.
You can also create a launcher script or desktop shortcut that runs DOSBox-X with a specific configuration file. This way you can have different shortcuts for different games, each with its own settings, without manually typing the command each time.
Backing up your configuration before making changes
Before you edit dosbox-x.conf, make a copy of it. Open your file manager, navigate to your home directory with hidden files visible, right-click .dosbox-x.conf, and choose "Copy". Then right-click in the same folder and choose "Paste". You will get a file called something like .dosbox-x.conf copy. Rename it to something you will remember, like .dosbox-x.conf.backup.
If you make a change that breaks something, you can delete the broken version and rename your backup back to .dosbox-x.conf. This takes two minutes and saves you from having to regenerate all your settings from scratch.
Why the configuration file is hidden
Linux hides files that start with a dot to keep your home directory from looking cluttered. Configuration files for hundreds of programs live there — .bashrc, .gitconfig, .ssh, and many others. Hiding them by default means you see only the folders and files you actually work with, not the system plumbing underneath.
This is not a security feature. Anyone with access to your account can see and change these files. It is simply a way to keep the file manager view clean. If you turn on "show hidden files" once, most file managers remember that choice and keep showing them.
Frequently Asked Questions
Can I move the configuration file to a different location?
You can create a new configuration file anywhere you want and tell DOSBox-X to use it with the -conf flag when you launch the program. However, DOSBox-X will still look for ~/.dosbox-x.conf by default if you do not specify a different file. Moving the original file will not break anything — DOSBox-X will simply create a new default one in your home directory the next time it runs.
What if I cannot see the configuration file even with hidden files turned on?
Make sure you are looking in your actual home directory, not a subfolder. Open a terminal and type ls -la ~/ | grep dosbox to see if the file exists. If it does not, launch DOSBox-X once to create it. If the file exists but you still cannot see it in the file manager, try a different file manager or use the terminal to edit it with nano ~/.dosbox-x.conf.
Will editing the configuration file break DOSBox-X?
Editing the file will not break your system. If you make a syntax error or set an invalid value, DOSBox-X may fail to start or ignore the bad setting. You can always delete the file and let DOSBox-X create a fresh one with defaults. Keep a backup copy before making major changes, and you have a quick way to recover.
Do I need to restart my computer after changing the configuration file?
No. Simply close DOSBox-X if it is running, edit the configuration file, and launch DOSBox-X again. The new settings take effect immediately on the next run. You do not need to restart your computer or log out.
Can multiple users on the same Linux system have different DOSBox-X configurations?
Yes. Each user account has its own home directory, and each one gets its own .dosbox-x.conf file. User A's configuration does not affect User B's. If you switch users, DOSBox-X will use the configuration file in that user's home directory.