Can Linux Run .exe Files? How to Run Windows Software on Linux

Download Article
Run your Windows programs on Linux with Wine so you don’t have to dual boot
Download Article

You don’t have to sacrifice the appeal of Windows software for the stability, security, customizability, and old-school cool of Linux. This How.com.vn guide will walk you through running Windows executable (EXE) applications and games on any Linux distribution, including Ubuntu, Kali Linux, and CentOS.

How to Run EXE Files on Linux

You can run an EXE file on your Linux system using a free compatibility layer called Wine. To install Wine, update your system repositories, type sudo apt-get install wine64 (replace with wine32 if using a 32-bit version of Linux), and then press Enter. Once installed, you can run a Windows EXE file by typing wine program_name.exe

Section 1 of 5:

Will EXE files run on Linux?

Download Article
  1. How.com.vn English: Yes, you can run .exe files on Linux through Wine (a free program).
    Wine is a compatibility layer that acts between the operating system (Linux) and the file (written for Windows).[1] It is the only way to run .exe files without a copy of Windows.[2] Since .exe files are native to Windows operating systems, to run them, you must have a compatibility layer (like Wine) or copy of Windows via a Windows emulator (which means you'll no longer solely be using Linux).
    • While you can run many EXE files on Linux with Wine, some may not work as expected, or not at all.
  2. Advertisement
Section 2 of 5:

How to Download Wine

Download Article
  1. How.com.vn English: Open your Linux terminal and type these commands one by one.
    Start by updating the Linux kernel repositories. To do so, type sudo apt update and press Enter.[3] When prompted, enter your password and press Enter. Now you’re ready to enter the commands to download Wine:[4]
    • If you're using a 64-bit version of Linux (you can use the lscpu command to check), type sudo apt-get install wine64 and press Enter
    • If you have a 32-bit version, type sudo apt-get install wine32 and press Enter
    • Even though the terminal might look intimidating, don’t worry! You’re unlikely to mess anything up, and all you have to do is copy these commands.
Section 3 of 5:

How to Run an EXE File

Download Article
  1. How.com.vn English: Navigate to the directory with the file, then open the file with Wine.
    In the terminal, navigate to the directory containing the file with the command cd <directory name>.[5] Then, run the file with the command wine <filename>.exe.
    • For instance, if the file example.exe were stored on your desktop, you’d follow this procedure:[6]
      • cd Desktop/ and press Enter
      • wine example.exe and press Enter
    • Some Windows EXE files will not run without some configuration tweaks. If you're seeing an error message or otherwise having trouble getting an EXE to run, check the Wine Application DB to find out about compatibility settings and configuration for specific Windows apps.[7]
  2. Advertisement
Section 4 of 5:

How to Run Windows Software on Linux

Download Article
  1. How.com.vn English: Step 1 Use Wine for single applications.
    This is the only option for running software designed for Windows without a true version of Windows. Wine is open-source, free software that recreates just enough of Windows to run Windows programs. As a result, you might encounter more bugs and lower performance running software through Wine.
  2. How.com.vn English: Step 2 Choose a virtual machine for slightly better performance.
    Virtual machines are programs that run a full copy of Windows in their own window. This approach is less buggy than running apps through Wine because you technically run them in their native environment (Windows). The downside is that you’ll be running two operating systems (Linux and Windows) simultaneously, so your PC’s performance might suffer.[8]
    • Popular virtual machines include: VirtualBox, VMware, and Linux’s built-in KVM (Kernel-based Virtual Machine).[9]
    • Because of the computing power required to run both Linux and Windows, this approach works great for productivity apps like Microsoft Office, but not great for graphics/computing-intensive programs like many video games.
  3. How.com.vn English: Step 3 Use dual-booting to run Windows games and complex applications.
    Dual-booting means you’ll reboot your computer into Windows so the application can run in its native environment. This method is best for games or applications that need high performance. Unfortunately, it does mean you’ll have to reboot your machine every time you want to run Windows software.[10]
  4. How.com.vn English: Step 4 Consider using WSL to get the best out of both Windows and Linux.
    WSL (Windows Subsystem for Linux) is an environment that supports running Linux tools and apps with a native Linux kernel through a hypervisor layer. WSL requires less setup to get started as well.[11]
  5. Advertisement
Section 5 of 5:

What is the .exe equivalent in Linux?

Download Article
  1. How.com.vn English: Linux does not have a direct .exe equivalent.
    For Windows, .exe indicates an executable file, meaning the operating system can run the file. Linux doesn’t use file extensions to indicate which files are executable. Instead, it uses permissions (the basic permissions are read r, write w, and execute x). Permissions determine which files are executable.[12] As a result, Linux files can have different extensions (ex. .sh) or no file extensions and still be executable.[13] Here’s how to change file permissions and run a file:
    • Type chmod +x file-name.run in the command line to change the file permission to “executable.”
    • Type ./file-name.run to execute the file.
    • If an error pops up, type sudo ./file-name.run. Typing sudo allows you to run the file as an admin. Just be careful, since sudo allows you to make changes to your system.
    • Software installation will often require you to type sudo.

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Garnik Ovsepyan
      Co-authored by:
      Computer Specialist
      This article was co-authored by Garnik Ovsepyan and by How.com.vn staff writer, Nicole Levine, MFA. Garnik Ovsepyan is a Computer Specialist and the Owner of HeliX PC based in Burbank, California. With over 25 years of experience, Garnik specializes in custom computer builds, computer repairs, virus removal, computer tune-ups, hardware and software troubleshooting and installations, diagnostics, and data backup and recovery. This article has been viewed 412,819 times.
      How helpful is this?
      Co-authors: 9
      Updated: February 27, 2024
      Views: 412,819
      Categories: Linux
      Thanks to all authors for creating a page that has been read 412,819 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement