Where Do You Put Game Files on Linux
When you switch to Linux for gaming, one of the first questions you might have is: where do you put game files on Linux? Unlike Windows, Linux has a different file system structure, and understanding where to place your game files can make a big difference. Whether you’re installing games manually, using Steam, or running games through compatibility layers like Proton, knowing the right directories helps keep your system organized and your games running smoothly.
In this article, I’ll guide you through the best practices for storing game files on Linux. We’ll cover common directories, how different game platforms handle files, and tips for managing your game libraries. By the end, you’ll feel confident about where to put your game files and how to keep everything tidy on your Linux system.
Understanding Linux File System Structure for Games
Linux organizes files differently than Windows. Instead of a single “Program Files” folder, Linux uses a hierarchy of directories, each with a specific purpose. Knowing this helps you decide where to place your game files.
- /usr/games: This directory is traditionally for system-wide installed games. However, it’s usually managed by your package manager and not recommended for manual game installs.
- /opt: This is a common place for optional or third-party software. Many commercial games or large game files go here.
- /home/username/.local/share: This is where user-specific game data often lives, especially for games installed via Flatpak or Steam.
- /home/username/Games: Many users create a dedicated “Games” folder in their home directory for manual installations or game backups.
Most modern Linux gaming platforms and tools use your home directory to store game files and save data. This keeps your system clean and avoids permission issues.
Where Steam Stores Game Files on Linux
Steam is the most popular platform for gaming on Linux. It uses its own directory structure to manage game files efficiently.
- By default, Steam installs games in:
/home/username/.steam/steam/steamapps/common/
This is where the actual game binaries and assets reside. - Game save files and configuration data are usually stored in:
/home/username/.local/share/or within hidden folders in your home directory. - You can add additional Steam library folders on other drives or partitions. Steam allows you to create new library folders via its settings, which helps if you want to store games on a separate SSD or HDD.
Using Steam’s built-in library management is the easiest way to handle game files. It automatically manages updates, file integrity, and compatibility layers like Proton.
Managing Game Files Installed Outside Steam
Not all Linux games come from Steam. Some are downloaded as standalone packages, run through Wine, or installed via Flatpak or Snap. Here’s where you typically put those game files:
- Manual installs:
Create a folder like/home/username/Games/and place your game files there. This keeps your home directory organized and avoids permission problems. - Wine games:
Wine creates a virtual Windows environment inside your home directory, usually at:/home/username/.wine/drive_c/Program Files/
or/home/username/.wine/drive_c/Program Files (x86)/
You install Windows games here, just like on a Windows PC. - Flatpak games:
Flatpak sandboxes apps and stores data in:/home/username/.var/app/
Each app has its own folder here, including games. - Snap games:
Snap packages store data in:/home/username/snap/
with separate directories for each snap.
Using these default locations helps maintain system stability and security, especially with sandboxed apps.
Tips for Organizing Game Files on Linux
Keeping your game files organized makes it easier to manage updates, backups, and troubleshooting. Here are some practical tips:
- Use a dedicated Games folder:
Create/home/username/Games/for manual installs or non-Steam games. This keeps everything in one place. - Separate save files from game binaries:
Save files often go in hidden folders like.local/shareor.config. Back these up regularly. - Leverage symbolic links:
If you have limited space on your main drive, you can move large game files to another partition and create symbolic links pointing back to the original location. - Use Steam library folders on different drives:
Steam lets you add multiple library folders, so you can spread your games across SSDs and HDDs. - Check permissions:
Make sure your user account has read/write access to the game directories to avoid launch errors.
How Proton and Compatibility Layers Affect Game File Locations
Proton is Valve’s compatibility layer that allows Windows games to run on Linux through Steam. It changes how game files are stored and accessed.
- Proton installs Windows games inside Steam’s library folder, but the actual Windows environment is virtualized.
- Game files appear under:
/home/username/.steam/steam/steamapps/compatdata/
Each game has a folder here with its own Wine prefix. - Save files may be inside this compatdata folder or in your home directory, depending on the game.
Understanding this helps if you want to back up or move Proton games manually.
Using External Drives for Game Storage on Linux
If you have limited space on your Linux system drive, using external drives for game storage is a smart choice.
- Format the drive with a Linux-friendly file system like ext4 for best performance and permissions.
- Create Steam library folders on the external drive to install games directly there.
- For manual installs, place your game folders on the external drive and create symbolic links in your home directory.
- Always safely unmount the drive before disconnecting to avoid data corruption.
This approach is popular among gamers with large libraries or those using laptops with small SSDs.
Common Issues and How to Fix Them
Sometimes, game files might not work correctly due to location or permission issues. Here’s how to troubleshoot:
- Game won’t launch:
Check if the game files have the right permissions. Usechmodto give execute permission if needed. - Save files not found:
Look in.local/shareor the game’s config folder in your home directory. - Steam can’t find game files:
Verify the Steam library folder paths in Steam settings. - Proton games crashing:
Try deleting the compatdata folder for the game to reset its Wine prefix. - External drive issues:
Ensure the drive is mounted and accessible before launching games.
Conclusion
Knowing where to put game files on Linux is key to a smooth gaming experience. Whether you use Steam, manual installs, or compatibility layers like Proton, storing your games in the right directories helps avoid permission problems and keeps your system organized. Steam’s default folders inside your home directory are the safest bet for most users, but creating a dedicated Games folder or using external drives can also work well.
By understanding Linux’s file system and how different gaming platforms handle files, you can manage your game library efficiently. This means less time troubleshooting and more time enjoying your favorite games on Linux. So go ahead, set up your game files properly, and dive into the world of Linux gaming with confidence!
FAQs
Where does Steam store game files on Linux?
Steam stores game files in /home/username/.steam/steam/steamapps/common/ by default. Save files are usually in .local/share or hidden folders in your home directory.
Can I install games outside of Steam on Linux?
Yes, you can manually install games in a folder like /home/username/Games/ or use Wine, Flatpak, or Snap for other game types.
How do I move Steam games to another drive on Linux?
Use Steam’s settings to add a new library folder on the other drive, then move or reinstall games there for better space management.
Where are Proton game files stored?
Proton stores Windows game files inside Steam’s compatdata folder: /home/username/.steam/steam/steamapps/compatdata/.
Is it safe to put game files in my home directory?
Yes, storing game files in your home directory avoids permission issues and keeps your system organized and secure.
