How do I view the code behind an .exe program on Linux? I want to see the programs code because I want to see how it works. I am just learning coding, so I thought the program would be cool to look at!
3 Answers
If you want to see the source for Linux executables, install the apt-src package (sudo apt-get install apt-src), and read man apt-src. Then you can use apt-src to get the source for ANY Ubuntu package.
- 37,856
There exists something know as decompiler. When you create a program in a compiled language, such as C, you use compiler that translates human-readable code into machine-level code. Decompiler does the opposite. Here's a small list of C decompilers, from stackoverflow question.
I don't have experience with decompilers , but my guess is that if a program is non-open source, you wouldn't be able to decompile it.
With open-source apps , it's easier - you can use apt-get source package-name or just look up an app on git-hub
- 107,582
You cant, .exe are executable binaries for windows, there's no code, just machine instructions. If you use Linux or Mac you can easily find the raw sources in the temp src folder of your package manager (brew, yum, apt-get...), Unix systems downloads the sources and (sometimes) builds it on your own machine
- 101