I don't know what the exact executable file extension is. Is it .deb or .tar.gz? Can anyone on Ask Ubuntu help?
|
|
||||
|
There is no standard File-Extention like an ".exe" file in Windows. On Linux nearly any file can be executable. The file ending just describes (but not necessarily) what or how a file is "executed". For example a shell script ends with .sh and is "executed" via the bash shell. In your question you ask for .deb and .tar.gz Well, the .deb file installs software on your system (Please be careful!) And the .tar.gz file is a compressed file like a .zip that you could know from Windows. |
|||||||||||||||||
|
|
Ubuntu equallant of .exe / .com file is extensionless file, usually some extensions like .bin ,.run etc are added to it for covinience there are several alternatives for .bat file(almost all files),the most popular one is .sh .deb is just an archive binary files(similar to .msi in windows) with debian standerds .tar.gz is just a common archiving format used in ubuntu |
|||
|
|
|
I would summarize the system in the following way:
Any file that starts with Therefore, answer your original question, there is no extension, or rarely, it is This has been made Community Wiki, so anyone can add an entry. |
||||
|
|
|
File execution on Linux isn't related at all to the file name or extension. Any file can potentially be executed, provided that it's handled by the kernel's The most common format for executable is ELF, although some kernels can be compiled for support of the old Another common mechanism is the "Shebang" system, handled by
If you fancy doing a bit of kernel programming, you can even write your own. Although not directly related, the The naming convention has nothing to do with the executable status of a file (except when it's used for The other aspect that can happen when you want to "run" a file is to have the file explorer tool that you use register extensions to be able to launch a program that will open these files. This is what would happen if you double click on a |
|||||||||||
|
|
To find out what a UNIX operating system thinks a particular file's type is, you use the file command:
In the above example, I give the path to the program 'ls', you would replace with the path of your file. A script file would look like:
A random text file:
An archive file:
It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:
And when it can't figure out what a file is (but is able to open it), it calls it data:
|
|||||
|
|
EXE and DLL files are portable executable files. These are based on the PE/COFF unix files. Read http://en.wikipedia.org/wiki/Portable_Executable for more information. In Ubuntu you don't have a specific extension for an executable file. These are generally files that are named after the application they relate too. The important factor is that these files have the executable bit set. If you have a color terminal you will notice that these are a different color when listed using In the unix file system binary executable files are generally stored in there own location.
whereas other application resources may be stored in /usr/lib/ or /usr/share/ A deb file is more correctly corresponded to an msi file in windows (i.e a package installer). Generally tar.gz files or bz2 files contain source code from which an application can be built |
|||
|
|
|
In windows, an .exe file is a computer file that ends with the extension ".exe" commonly known as executable file. When one clicks on an exe file, a built-in routine automatically executes code that can set several functions into motion. Exe files are commonly used to install files in the windows operating system. Additionally, you have .tar files,commonly known as compressed files.Linux versions, such as Ubuntu use features prominently in various software distributions, with most software source code made available in the tar.gz format .From that you can assume that tar.gz is a form of the well know .tar format, which is used for archiving. In Ubuntu on the other hand, the .deb file format is the one that behaves more like the .exe file in windows.When you open it the software center handles it's code and installs the program it contains, such as an executable file. Even though you can still install software and packages from source format ( tar.gz), the best suited format for installing software is the .deb one.Take as example the Ubuntu Software Center; all the applications it contains are in fact .deb files.In general, in linux, almost every file format(including .deb and tar.gz as well as the well know bash files .sh) can behave as an executable file so that you can install packages or software with that. |
||||
|
The concept of an executable is different in unix/linux than Windows. WindowsAnything that ends in Linux/UnixEach and every file has an executable bit, so any file can be executed, unlike Windows. To see if a file is executable, you can check its properties (Permissions tab), or even see them marked in the terminal (they are all marked with a *). Even text files (like shell scripts) can have their executable bits set, and be run as one. |
|||||||
|

.exeextensions not being needed for native executables. The former explains the contents of/dev; the latter is because of execute permissions and reliance on examining the inside of a file to determine what kind of file it is. – Eliah Kagan Jun 26 '12 at 20:57