What is the equivalent of an “exe file”?What is the Linux equivalent of a Windows exe file?How to install apps without software centreThe basic apps installer extensionHow does Ubuntu know what file type a file without extension is?.desktop file fails to runUbuntu Equivalent of portable executable fileProblem when trying to execute a fileProblem with Mono and .exe fileHow to call a custom executable or script in termnial directly with name?Can't run application/x-executable files in Ubuntu 14.04 LTS (linaxepad)How to make a file extension non-executable?Why not make .txt file executable instead of .sh file to run scripts?How to run an executable file from a different directory without cd or modifying the PATH?

Which font's digits resemble Nixie tube digits?

What is the difference between become and be become?

How and why is my site being abused?

Help parsing a sentence with two を

Should I provide my username and password for my brokerage account to my mortgage lender to verify my assets?

Do any printing presses exist in the Forgotten Realms?

Fill the Golfeek gutter

Is it true that "Trump did not have a serious opportunity to offer his side of the story" in the House impeachment proceedings?

Is it possible to conserve the total kinetic energy of a system, but not its momentum?

Was Jumanji intended to be a co-op game?

Is this homebrew Warlock Invocation, Splinter Casting, balanced?

What's the criteria/reasoning for Rick's three questions in The Walking Dead?

To whom does "Madam Speaker" refer during the Trump impeachment debate?

How can there exist a profession consisting of investing others' money?

What happens when a photon "dies"?

How to correctly say Star Wars in Latin?

Replacing ''' with sed

What would happen if a Cleric blessed a Warlock with a fiend patron?

Does adamantium solve the giant mecha problem?

3.3M resistors not registering on multimeter - are they faulty?

TikZ automate numbered box-form

Is there a way to use logic operators in Blender Shader nodes?

Understanding of big-O massively improved when I began thinking of orders as sets. How to apply the same approach to big-Theta?

Corridor seats on the TGV — why? Are seat reservations not always mandatory?



What is the equivalent of an “exe file”?


What is the Linux equivalent of a Windows exe file?How to install apps without software centreThe basic apps installer extensionHow does Ubuntu know what file type a file without extension is?.desktop file fails to runUbuntu Equivalent of portable executable fileProblem when trying to execute a fileProblem with Mono and .exe fileHow to call a custom executable or script in termnial directly with name?Can't run application/x-executable files in Ubuntu 14.04 LTS (linaxepad)How to make a file extension non-executable?Why not make .txt file executable instead of .sh file to run scripts?How to run an executable file from a different directory without cd or modifying the PATH?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









47


















I don't know what the exact executable file extension is. Is it .deb or .tar.gz?










share|improve this question






















  • 13





    Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

    – atenz
    Jun 26 '12 at 19:23






  • 15





    @tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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












  • @ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

    – atenz
    Jun 26 '12 at 21:13







  • 4





    @tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

    – Eliah Kagan
    Jun 26 '12 at 23:18







  • 2





    I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

    – atenz
    Jun 27 '12 at 5:49

















47


















I don't know what the exact executable file extension is. Is it .deb or .tar.gz?










share|improve this question






















  • 13





    Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

    – atenz
    Jun 26 '12 at 19:23






  • 15





    @tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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












  • @ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

    – atenz
    Jun 26 '12 at 21:13







  • 4





    @tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

    – Eliah Kagan
    Jun 26 '12 at 23:18







  • 2





    I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

    – atenz
    Jun 27 '12 at 5:49













47













47









47


28






I don't know what the exact executable file extension is. Is it .deb or .tar.gz?










share|improve this question
















I don't know what the exact executable file extension is. Is it .deb or .tar.gz?







executable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 8 '17 at 8:09









A-Sharabiani

5776 silver badges11 bronze badges




5776 silver badges11 bronze badges










asked Jun 26 '12 at 19:14









user54905user54905

4831 gold badge5 silver badges4 bronze badges




4831 gold badge5 silver badges4 bronze badges










  • 13





    Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

    – atenz
    Jun 26 '12 at 19:23






  • 15





    @tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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












  • @ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

    – atenz
    Jun 26 '12 at 21:13







  • 4





    @tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

    – Eliah Kagan
    Jun 26 '12 at 23:18







  • 2





    I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

    – atenz
    Jun 27 '12 at 5:49












  • 13





    Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

    – atenz
    Jun 26 '12 at 19:23






  • 15





    @tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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












  • @ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

    – atenz
    Jun 26 '12 at 21:13







  • 4





    @tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

    – Eliah Kagan
    Jun 26 '12 at 23:18







  • 2





    I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

    – atenz
    Jun 27 '12 at 5:49







13




13





Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

– atenz
Jun 26 '12 at 19:23





Not an answer but would like to add EVERYTHING in LINUX is a FILE so having Extensions as .exe never matters.

– atenz
Jun 26 '12 at 19:23




15




15





@tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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






@tijybba The "everything is a file" design philosophy is totally unrelated to .exe extensions 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














@ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

– atenz
Jun 26 '12 at 21:13






@ Eliah Kagan - It was just a basic info since In Windows extension is necessary for execution , well in Linux it ain't , as far as Executable Permissions is concerned , it requires little more Know How of Sudo -User Access and Underlaid security concerns, which i guessed someone would clarify in answer as its latter part ,if at all needed that's why i posted it as comment not an answer.

– atenz
Jun 26 '12 at 21:13





4




4





@tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

– Eliah Kagan
Jun 26 '12 at 23:18






@tijybba But "everything" being a file doesn't really have anything to do with the topic of this question, does it?

– Eliah Kagan
Jun 26 '12 at 23:18





2




2





I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

– atenz
Jun 27 '12 at 5:49





I guess i misread that part in question , which says " what is a exe file is in Ubuntu?", i considered Executable, but now with your eager help it seems it meant " what is a .exe file is in Ubuntu? ". If it is highly inappropriate , let me know i would be glad to delete it .( Mistakes are great learning experiences:D ).

– atenz
Jun 27 '12 at 5:49










11 Answers
11






active

oldest

votes


















44



















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.






share|improve this answer




















  • 1





    So, .deb is a .exe file!

    – user54905
    Jun 26 '12 at 20:14






  • 13





    @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

    – Bruno
    Jun 26 '12 at 21:02






  • 4





    .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

    – Rafał Cieślak
    Jun 26 '12 at 21:23







  • 5





    That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

    – tyjkenn
    Jun 27 '12 at 0:18







  • 33





    .deb is more like a .msi file than a .exe file.

    – detly
    Jun 27 '12 at 4:28


















82



















I would summarize the system in the following way:



Linux extension |Windows Equivalent |Short description
------------------------------------------------------------
.so, .o | .dll | Object that can be loaded at runtime (Similar to DLL)
.a | .lib | Static library
[none], .elf(rare),| .exe, .com(rare) | Linux executables
.bin(rare) | |
.sh | .bat | Shell script
.exe | .exe | Mono application, Wine application
.deb | .msi | Installer package for Debian/Ubuntu releases
| | (Though .deb is much more powerful with
| | native support for dependencies and repos). Note that .deb is actually a .ar archive with a special control file, a special file order, and a different extension.
.rpm | .msi | Installer package for RedHat/CentOS releases.
.tar.gz, .tar, .gz | .zip | Compressed files that can contain a program or any other data, like images, documents, etc
.ko | .sys | Drivers and kernel modules are loaded into the Linux kernel and have more hardware access than other programs.
.sh, .php, .py, etc| .bat, .cmd, .vbs, | Linux is capable of running any file that it has an interpreter for.
| .js | A line at the top of the file called the shebang specifies what interpreter to run the file with.
| | Windows only supports .bat and .cmd files as Batch files, and .vbs (vbscript) and .js (JScript, not to be confused with JavaScript) via the Windows Script Host (WSH).


Any file that starts with #!(called a shebang or hashbang) on the first line is just a script. The path after the shebang is a path to the program (executable) that needs to parse the script, assuming that the execute permission has been set on the file with chmod a+x filename.



Therefore, answer your original question, there is no extension, or rarely, it is .elf or .bin.



This has been made Community Wiki, so anyone can add an entry.






share|improve this answer






















  • 2





    I've never seen the .elf extension but saw .bin extension quite often.

    – Calmarius
    Aug 22 '14 at 21:36






  • 1





    While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

    – TrySpace
    May 21 '15 at 6:57












  • You should add .bin extension (as Windows equivalent to .exe)

    – Dani-Br
    Jun 25 '15 at 12:53











  • @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

    – Reinstate Monica - ζ--
    Jun 25 '15 at 13:46











  • It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

    – Accountant م
    Mar 6 at 19:25



















23



















The concept of an executable is different in unix/linux than Windows.



Windows



Anything that ends in .exe or .com becomes an executable file.



Linux/Unix



Each 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.






share|improve this answer




















  • 4





    also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

    – jackweirdy
    Jun 26 '12 at 19:32











  • Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

    – BillThor
    Jun 27 '12 at 3:03











  • There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

    – arielf
    Jun 2 '16 at 0:36


















16



















To find out what a UNIX operating system thinks a particular file's type is, you use the file command:



$ file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, for OpenBSD, statically linked, stripped


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:



$ file script.sh
script.sh: Bourne-Again shell script text


A random text file:



$ file textfile
textfile: ASCII text


An archive file:



$ file rsync-3.0.6.tar.gz
rsync-3.0.6.tar.gz: gzip compressed data, from Unix


It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:



$ file FMZsetup.exe
FMZsetup.exe: MS-DOS executable (EXE), OS/2 or Windows


And when it can't figure out what a file is (but is able to open it), it calls it data:



$ file myrandom
myrandom: data





share|improve this answer






















  • 1





    Not really an answer,but good side-"answer"

    – dlin
    Jun 26 '12 at 19:37


















12



















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 binfmt mechanism (and that its executable permissions are set).



The most common format for executable is ELF, although some kernels can be compiled for support of the old a.out format. (For full technical details, binfmt_elf.c is where to look.)



Another common mechanism is the "Shebang" system, handled by binfmt_script, which looks for #!/path/to/interpreter at the beginning of the file.



binfmt_misc allows for the registration of other handlers, as documented here.



If you fancy doing a bit of kernel programming, you can even write your own.



Although not directly related, the file command should tell you whether a file is an ELF executable or something else.



The naming convention has nothing to do with the executable status of a file (except when it's used for binfmt_misc registration). They're just conventions. Typically, a .exe file found on Linux could be a mono application, getting the .exe extension as a convention coming from the Windows/.Net world.



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 .txt, .tar.gz or .deb, for example: the files are not executables nor executed, but what you use to double-click chooses which executable to launch to open these files.






share|improve this answer



























  • I think this is better as a comment on the side of one of the more-inclusive answers.

    – Reinstate Monica - ζ--
    Aug 13 '12 at 12:27











  • @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

    – Bruno
    Aug 13 '12 at 13:03











  • I did not downvote. I felt as the vote should stay as is.

    – Reinstate Monica - ζ--
    Aug 13 '12 at 13:04











  • @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

    – Bruno
    Aug 13 '12 at 13:09












  • OK. No problem.

    – Reinstate Monica - ζ--
    Aug 13 '12 at 13:11


















2



















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.






share|improve this answer






















  • 5





    I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

    – MvG
    Jun 26 '12 at 19:42











  • that IS correct! :)

    – dlin
    Jun 26 '12 at 20:23


















2



















There is no equivalent to the exe file extension in Windows to indicate a file is executable. Instead, executable files can have any extension, and typically have no extension at all.



Linux/Unix uses file permissions to indicate if a file may be executed. Specifically, there is an execute file permission that tells the system that this file is allowed to be executed. However, the absence of this permission does not indicate that the file isn't an executable; merely that the relevant user is not allowed to try to execute it. Similarly the presence of this permission does not always indicate that the file is a valid executable.



Linux/Unix has a binary executable file format called ELF which is an equivalent to the PE (Windows) or MZ/NE (DOS) binary executable formats which usually bear the extension .exe



However, other types of files may be executable, depending on the shell. Typically, if you try to execute a file that the system does not recognise as a binary executable (eg, ELF format), then it is interpreted by the current shell interpreter. This fulfills the same effect as batch files in Windows or DOS, except that again, it is not the extension that identifies its type or how to execute it.



Shell files may optionally begin with a hashbang (first two characters in the file are #! followed by a path to an interpreter) in which case rather than interpret the rest of the file with the current shell interpreter, it can launch an alternative shell or interpreter to execute the file. Thus, you can have a script in any interpreted language and still have it run with the correct interpreter when trying to execute the script.






share|improve this answer

























  • Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

    – Tamsyn Michael
    Jun 25 '15 at 17:11


















1



















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 ls.



In the unix file system binary executable files are generally stored in there own location.



  1. /bin (core binaries)

  2. /sbin (system binaries)

  3. /usr/bin (application binaries)

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






share|improve this answer
































    0



















    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






    share|improve this answer
































      0



















      Any filename can be set to executable regardless of extension, but the file needs to have the appropriate permission set. The permission may be given by right-clicking the file in Nautilus, clicking Properties, and ticking the "Allow executing file as program" checkbox:



      menu item showing Execute: -checkbox- Allow executing file as program






      share|improve this answer



























      • I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

        – Elder Geek
        Apr 24 '15 at 1:26


















      -3



















      .deb Debian Package for Linux and TAR archive compressed with the standard GNU zip (gzip) compression algorithm; contains one or more compressed files; commonly used on Unix operating systems to package files, programs, and installers.



      NOTE: TAR.GZ files must first be decompressed and then expanded using a TAR utility. They include both .TAR and .GZ file types.






      share|improve this answer































        11 Answers
        11






        active

        oldest

        votes








        11 Answers
        11






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        44



















        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.






        share|improve this answer




















        • 1





          So, .deb is a .exe file!

          – user54905
          Jun 26 '12 at 20:14






        • 13





          @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

          – Bruno
          Jun 26 '12 at 21:02






        • 4





          .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

          – Rafał Cieślak
          Jun 26 '12 at 21:23







        • 5





          That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

          – tyjkenn
          Jun 27 '12 at 0:18







        • 33





          .deb is more like a .msi file than a .exe file.

          – detly
          Jun 27 '12 at 4:28















        44



















        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.






        share|improve this answer




















        • 1





          So, .deb is a .exe file!

          – user54905
          Jun 26 '12 at 20:14






        • 13





          @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

          – Bruno
          Jun 26 '12 at 21:02






        • 4





          .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

          – Rafał Cieślak
          Jun 26 '12 at 21:23







        • 5





          That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

          – tyjkenn
          Jun 27 '12 at 0:18







        • 33





          .deb is more like a .msi file than a .exe file.

          – detly
          Jun 27 '12 at 4:28













        44















        44











        44









        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.






        share|improve this answer














        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.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jun 26 '12 at 19:21









        rechengehirnrechengehirn

        3,8383 gold badges18 silver badges32 bronze badges




        3,8383 gold badges18 silver badges32 bronze badges










        • 1





          So, .deb is a .exe file!

          – user54905
          Jun 26 '12 at 20:14






        • 13





          @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

          – Bruno
          Jun 26 '12 at 21:02






        • 4





          .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

          – Rafał Cieślak
          Jun 26 '12 at 21:23







        • 5





          That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

          – tyjkenn
          Jun 27 '12 at 0:18







        • 33





          .deb is more like a .msi file than a .exe file.

          – detly
          Jun 27 '12 at 4:28












        • 1





          So, .deb is a .exe file!

          – user54905
          Jun 26 '12 at 20:14






        • 13





          @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

          – Bruno
          Jun 26 '12 at 21:02






        • 4





          .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

          – Rafał Cieślak
          Jun 26 '12 at 21:23







        • 5





          That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

          – tyjkenn
          Jun 27 '12 at 0:18







        • 33





          .deb is more like a .msi file than a .exe file.

          – detly
          Jun 27 '12 at 4:28







        1




        1





        So, .deb is a .exe file!

        – user54905
        Jun 26 '12 at 20:14





        So, .deb is a .exe file!

        – user54905
        Jun 26 '12 at 20:14




        13




        13





        @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

        – Bruno
        Jun 26 '12 at 21:02





        @Nick, .deb files tend NOT to be executables: they're neither ELF nor "she-bang" scripts and they're unlikely to be registered with binfmt. Even with executable permissions, the kernel wouldn't know what to do with them. The fact that your file explorer can be registered to open files with a certain application based on the extension has nothing to do with them being executable (in terms of file permission or in terms of kernel binary format execution).

        – Bruno
        Jun 26 '12 at 21:02




        4




        4





        .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

        – Rafał Cieślak
        Jun 26 '12 at 21:23






        .deb file is also more like a .zip then like an .exe. The point is that .deb does not execute itself, it is extracted, interpreted and installed by some other application.

        – Rafał Cieślak
        Jun 26 '12 at 21:23





        5




        5





        That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

        – tyjkenn
        Jun 27 '12 at 0:18






        That other application usually being the Software Center, which doubles as an installer. Linux is less dependent on extensions compared to Windows and therefore decides executability based on permissions rather than extension.

        – tyjkenn
        Jun 27 '12 at 0:18





        33




        33





        .deb is more like a .msi file than a .exe file.

        – detly
        Jun 27 '12 at 4:28





        .deb is more like a .msi file than a .exe file.

        – detly
        Jun 27 '12 at 4:28













        82



















        I would summarize the system in the following way:



        Linux extension |Windows Equivalent |Short description
        ------------------------------------------------------------
        .so, .o | .dll | Object that can be loaded at runtime (Similar to DLL)
        .a | .lib | Static library
        [none], .elf(rare),| .exe, .com(rare) | Linux executables
        .bin(rare) | |
        .sh | .bat | Shell script
        .exe | .exe | Mono application, Wine application
        .deb | .msi | Installer package for Debian/Ubuntu releases
        | | (Though .deb is much more powerful with
        | | native support for dependencies and repos). Note that .deb is actually a .ar archive with a special control file, a special file order, and a different extension.
        .rpm | .msi | Installer package for RedHat/CentOS releases.
        .tar.gz, .tar, .gz | .zip | Compressed files that can contain a program or any other data, like images, documents, etc
        .ko | .sys | Drivers and kernel modules are loaded into the Linux kernel and have more hardware access than other programs.
        .sh, .php, .py, etc| .bat, .cmd, .vbs, | Linux is capable of running any file that it has an interpreter for.
        | .js | A line at the top of the file called the shebang specifies what interpreter to run the file with.
        | | Windows only supports .bat and .cmd files as Batch files, and .vbs (vbscript) and .js (JScript, not to be confused with JavaScript) via the Windows Script Host (WSH).


        Any file that starts with #!(called a shebang or hashbang) on the first line is just a script. The path after the shebang is a path to the program (executable) that needs to parse the script, assuming that the execute permission has been set on the file with chmod a+x filename.



        Therefore, answer your original question, there is no extension, or rarely, it is .elf or .bin.



        This has been made Community Wiki, so anyone can add an entry.






        share|improve this answer






















        • 2





          I've never seen the .elf extension but saw .bin extension quite often.

          – Calmarius
          Aug 22 '14 at 21:36






        • 1





          While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

          – TrySpace
          May 21 '15 at 6:57












        • You should add .bin extension (as Windows equivalent to .exe)

          – Dani-Br
          Jun 25 '15 at 12:53











        • @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

          – Reinstate Monica - ζ--
          Jun 25 '15 at 13:46











        • It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

          – Accountant م
          Mar 6 at 19:25
















        82



















        I would summarize the system in the following way:



        Linux extension |Windows Equivalent |Short description
        ------------------------------------------------------------
        .so, .o | .dll | Object that can be loaded at runtime (Similar to DLL)
        .a | .lib | Static library
        [none], .elf(rare),| .exe, .com(rare) | Linux executables
        .bin(rare) | |
        .sh | .bat | Shell script
        .exe | .exe | Mono application, Wine application
        .deb | .msi | Installer package for Debian/Ubuntu releases
        | | (Though .deb is much more powerful with
        | | native support for dependencies and repos). Note that .deb is actually a .ar archive with a special control file, a special file order, and a different extension.
        .rpm | .msi | Installer package for RedHat/CentOS releases.
        .tar.gz, .tar, .gz | .zip | Compressed files that can contain a program or any other data, like images, documents, etc
        .ko | .sys | Drivers and kernel modules are loaded into the Linux kernel and have more hardware access than other programs.
        .sh, .php, .py, etc| .bat, .cmd, .vbs, | Linux is capable of running any file that it has an interpreter for.
        | .js | A line at the top of the file called the shebang specifies what interpreter to run the file with.
        | | Windows only supports .bat and .cmd files as Batch files, and .vbs (vbscript) and .js (JScript, not to be confused with JavaScript) via the Windows Script Host (WSH).


        Any file that starts with #!(called a shebang or hashbang) on the first line is just a script. The path after the shebang is a path to the program (executable) that needs to parse the script, assuming that the execute permission has been set on the file with chmod a+x filename.



        Therefore, answer your original question, there is no extension, or rarely, it is .elf or .bin.



        This has been made Community Wiki, so anyone can add an entry.






        share|improve this answer






















        • 2





          I've never seen the .elf extension but saw .bin extension quite often.

          – Calmarius
          Aug 22 '14 at 21:36






        • 1





          While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

          – TrySpace
          May 21 '15 at 6:57












        • You should add .bin extension (as Windows equivalent to .exe)

          – Dani-Br
          Jun 25 '15 at 12:53











        • @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

          – Reinstate Monica - ζ--
          Jun 25 '15 at 13:46











        • It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

          – Accountant م
          Mar 6 at 19:25














        82















        82











        82









        I would summarize the system in the following way:



        Linux extension |Windows Equivalent |Short description
        ------------------------------------------------------------
        .so, .o | .dll | Object that can be loaded at runtime (Similar to DLL)
        .a | .lib | Static library
        [none], .elf(rare),| .exe, .com(rare) | Linux executables
        .bin(rare) | |
        .sh | .bat | Shell script
        .exe | .exe | Mono application, Wine application
        .deb | .msi | Installer package for Debian/Ubuntu releases
        | | (Though .deb is much more powerful with
        | | native support for dependencies and repos). Note that .deb is actually a .ar archive with a special control file, a special file order, and a different extension.
        .rpm | .msi | Installer package for RedHat/CentOS releases.
        .tar.gz, .tar, .gz | .zip | Compressed files that can contain a program or any other data, like images, documents, etc
        .ko | .sys | Drivers and kernel modules are loaded into the Linux kernel and have more hardware access than other programs.
        .sh, .php, .py, etc| .bat, .cmd, .vbs, | Linux is capable of running any file that it has an interpreter for.
        | .js | A line at the top of the file called the shebang specifies what interpreter to run the file with.
        | | Windows only supports .bat and .cmd files as Batch files, and .vbs (vbscript) and .js (JScript, not to be confused with JavaScript) via the Windows Script Host (WSH).


        Any file that starts with #!(called a shebang or hashbang) on the first line is just a script. The path after the shebang is a path to the program (executable) that needs to parse the script, assuming that the execute permission has been set on the file with chmod a+x filename.



        Therefore, answer your original question, there is no extension, or rarely, it is .elf or .bin.



        This has been made Community Wiki, so anyone can add an entry.






        share|improve this answer
















        I would summarize the system in the following way:



        Linux extension |Windows Equivalent |Short description
        ------------------------------------------------------------
        .so, .o | .dll | Object that can be loaded at runtime (Similar to DLL)
        .a | .lib | Static library
        [none], .elf(rare),| .exe, .com(rare) | Linux executables
        .bin(rare) | |
        .sh | .bat | Shell script
        .exe | .exe | Mono application, Wine application
        .deb | .msi | Installer package for Debian/Ubuntu releases
        | | (Though .deb is much more powerful with
        | | native support for dependencies and repos). Note that .deb is actually a .ar archive with a special control file, a special file order, and a different extension.
        .rpm | .msi | Installer package for RedHat/CentOS releases.
        .tar.gz, .tar, .gz | .zip | Compressed files that can contain a program or any other data, like images, documents, etc
        .ko | .sys | Drivers and kernel modules are loaded into the Linux kernel and have more hardware access than other programs.
        .sh, .php, .py, etc| .bat, .cmd, .vbs, | Linux is capable of running any file that it has an interpreter for.
        | .js | A line at the top of the file called the shebang specifies what interpreter to run the file with.
        | | Windows only supports .bat and .cmd files as Batch files, and .vbs (vbscript) and .js (JScript, not to be confused with JavaScript) via the Windows Script Host (WSH).


        Any file that starts with #!(called a shebang or hashbang) on the first line is just a script. The path after the shebang is a path to the program (executable) that needs to parse the script, assuming that the execute permission has been set on the file with chmod a+x filename.



        Therefore, answer your original question, there is no extension, or rarely, it is .elf or .bin.



        This has been made Community Wiki, so anyone can add an entry.







        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Oct 3 at 4:22


























        community wiki





        14 revs, 5 users 78%
        ζ--











        • 2





          I've never seen the .elf extension but saw .bin extension quite often.

          – Calmarius
          Aug 22 '14 at 21:36






        • 1





          While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

          – TrySpace
          May 21 '15 at 6:57












        • You should add .bin extension (as Windows equivalent to .exe)

          – Dani-Br
          Jun 25 '15 at 12:53











        • @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

          – Reinstate Monica - ζ--
          Jun 25 '15 at 13:46











        • It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

          – Accountant م
          Mar 6 at 19:25













        • 2





          I've never seen the .elf extension but saw .bin extension quite often.

          – Calmarius
          Aug 22 '14 at 21:36






        • 1





          While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

          – TrySpace
          May 21 '15 at 6:57












        • You should add .bin extension (as Windows equivalent to .exe)

          – Dani-Br
          Jun 25 '15 at 12:53











        • @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

          – Reinstate Monica - ζ--
          Jun 25 '15 at 13:46











        • It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

          – Accountant م
          Mar 6 at 19:25








        2




        2





        I've never seen the .elf extension but saw .bin extension quite often.

        – Calmarius
        Aug 22 '14 at 21:36





        I've never seen the .elf extension but saw .bin extension quite often.

        – Calmarius
        Aug 22 '14 at 21:36




        1




        1





        While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

        – TrySpace
        May 21 '15 at 6:57






        While the other answers focus on the fact that 'any' file can be an executable, this answer really hits the nail on the head, whereas saying 'anything' can be an executable is not really informative or true, but rather exceptionalist. I could rename any file on windows to .exe, and it will try to execute it, but won't necessarily work, in linux its the same, if it's not meant to be executed, its not going to work... My issue many times is downloading a package, and not really understanding what to start, but off course, rtfm.

        – TrySpace
        May 21 '15 at 6:57














        You should add .bin extension (as Windows equivalent to .exe)

        – Dani-Br
        Jun 25 '15 at 12:53





        You should add .bin extension (as Windows equivalent to .exe)

        – Dani-Br
        Jun 25 '15 at 12:53













        @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

        – Reinstate Monica - ζ--
        Jun 25 '15 at 13:46





        @Dani-Br This is a community-wiki post, meaning that others are welcome to edit it, and you have enough reputation to do so (at 101). I've added .bin for now.

        – Reinstate Monica - ζ--
        Jun 25 '15 at 13:46













        It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

        – Accountant م
        Mar 6 at 19:25






        It is not an extension, but it was useful for me to know that the "PE" format on Windows is the equivalent to "ELF" format on Linux thought

        – Accountant م
        Mar 6 at 19:25












        23



















        The concept of an executable is different in unix/linux than Windows.



        Windows



        Anything that ends in .exe or .com becomes an executable file.



        Linux/Unix



        Each 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.






        share|improve this answer




















        • 4





          also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

          – jackweirdy
          Jun 26 '12 at 19:32











        • Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

          – BillThor
          Jun 27 '12 at 3:03











        • There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

          – arielf
          Jun 2 '16 at 0:36















        23



















        The concept of an executable is different in unix/linux than Windows.



        Windows



        Anything that ends in .exe or .com becomes an executable file.



        Linux/Unix



        Each 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.






        share|improve this answer




















        • 4





          also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

          – jackweirdy
          Jun 26 '12 at 19:32











        • Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

          – BillThor
          Jun 27 '12 at 3:03











        • There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

          – arielf
          Jun 2 '16 at 0:36













        23















        23











        23









        The concept of an executable is different in unix/linux than Windows.



        Windows



        Anything that ends in .exe or .com becomes an executable file.



        Linux/Unix



        Each 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.






        share|improve this answer














        The concept of an executable is different in unix/linux than Windows.



        Windows



        Anything that ends in .exe or .com becomes an executable file.



        Linux/Unix



        Each 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.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jun 26 '12 at 19:21









        NemoNemo

        7,9465 gold badges41 silver badges63 bronze badges




        7,9465 gold badges41 silver badges63 bronze badges










        • 4





          also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

          – jackweirdy
          Jun 26 '12 at 19:32











        • Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

          – BillThor
          Jun 27 '12 at 3:03











        • There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

          – arielf
          Jun 2 '16 at 0:36












        • 4





          also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

          – jackweirdy
          Jun 26 '12 at 19:32











        • Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

          – BillThor
          Jun 27 '12 at 3:03











        • There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

          – arielf
          Jun 2 '16 at 0:36







        4




        4





        also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

        – jackweirdy
        Jun 26 '12 at 19:32





        also worth adding that in the case of text files, the shebang (#!/bin/bash for example) at the start of the file sets which program executes the file.

        – jackweirdy
        Jun 26 '12 at 19:32













        Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

        – BillThor
        Jun 27 '12 at 3:03





        Separate executable bits exist for user, group, and other. Use of these bits can limit who can execute the program. Additional bits exist for SUID and SGID to cause the program to run as the user or group that owns the file.

        – BillThor
        Jun 27 '12 at 3:03













        There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

        – arielf
        Jun 2 '16 at 0:36





        There are some inaccuracies above: 2) "every file has an executable bit": there are three executable bits (owner, group, and others), so one can allow himself but not others to execute a file. There is also a setuid bit to "execute-as-owner" and setgid "execute-as-group". 2) "any file can be executed": not so. the permission bits are a required but insufficient condition to successfully execute a file. An Immediate failure will occur for example if the file cannot actually be loaded and run (Ref: file magic numbers man magic , ELF man elf, and hash-bang line man execve)

        – arielf
        Jun 2 '16 at 0:36











        16



















        To find out what a UNIX operating system thinks a particular file's type is, you use the file command:



        $ file /bin/ls
        /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, for OpenBSD, statically linked, stripped


        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:



        $ file script.sh
        script.sh: Bourne-Again shell script text


        A random text file:



        $ file textfile
        textfile: ASCII text


        An archive file:



        $ file rsync-3.0.6.tar.gz
        rsync-3.0.6.tar.gz: gzip compressed data, from Unix


        It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:



        $ file FMZsetup.exe
        FMZsetup.exe: MS-DOS executable (EXE), OS/2 or Windows


        And when it can't figure out what a file is (but is able to open it), it calls it data:



        $ file myrandom
        myrandom: data





        share|improve this answer






















        • 1





          Not really an answer,but good side-"answer"

          – dlin
          Jun 26 '12 at 19:37















        16



















        To find out what a UNIX operating system thinks a particular file's type is, you use the file command:



        $ file /bin/ls
        /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, for OpenBSD, statically linked, stripped


        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:



        $ file script.sh
        script.sh: Bourne-Again shell script text


        A random text file:



        $ file textfile
        textfile: ASCII text


        An archive file:



        $ file rsync-3.0.6.tar.gz
        rsync-3.0.6.tar.gz: gzip compressed data, from Unix


        It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:



        $ file FMZsetup.exe
        FMZsetup.exe: MS-DOS executable (EXE), OS/2 or Windows


        And when it can't figure out what a file is (but is able to open it), it calls it data:



        $ file myrandom
        myrandom: data





        share|improve this answer






















        • 1





          Not really an answer,but good side-"answer"

          – dlin
          Jun 26 '12 at 19:37













        16















        16











        16









        To find out what a UNIX operating system thinks a particular file's type is, you use the file command:



        $ file /bin/ls
        /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, for OpenBSD, statically linked, stripped


        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:



        $ file script.sh
        script.sh: Bourne-Again shell script text


        A random text file:



        $ file textfile
        textfile: ASCII text


        An archive file:



        $ file rsync-3.0.6.tar.gz
        rsync-3.0.6.tar.gz: gzip compressed data, from Unix


        It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:



        $ file FMZsetup.exe
        FMZsetup.exe: MS-DOS executable (EXE), OS/2 or Windows


        And when it can't figure out what a file is (but is able to open it), it calls it data:



        $ file myrandom
        myrandom: data





        share|improve this answer
















        To find out what a UNIX operating system thinks a particular file's type is, you use the file command:



        $ file /bin/ls
        /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, for OpenBSD, statically linked, stripped


        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:



        $ file script.sh
        script.sh: Bourne-Again shell script text


        A random text file:



        $ file textfile
        textfile: ASCII text


        An archive file:



        $ file rsync-3.0.6.tar.gz
        rsync-3.0.6.tar.gz: gzip compressed data, from Unix


        It is even smart enough to correctly identify a windows program, should you happen to have one lying around on your UNIX box:



        $ file FMZsetup.exe
        FMZsetup.exe: MS-DOS executable (EXE), OS/2 or Windows


        And when it can't figure out what a file is (but is able to open it), it calls it data:



        $ file myrandom
        myrandom: data






        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Jun 26 '12 at 21:01









        Eliah Kagan

        97k25 gold badges263 silver badges420 bronze badges




        97k25 gold badges263 silver badges420 bronze badges










        answered Jun 26 '12 at 19:36









        Don SimonDon Simon

        3781 silver badge5 bronze badges




        3781 silver badge5 bronze badges










        • 1





          Not really an answer,but good side-"answer"

          – dlin
          Jun 26 '12 at 19:37












        • 1





          Not really an answer,but good side-"answer"

          – dlin
          Jun 26 '12 at 19:37







        1




        1





        Not really an answer,but good side-"answer"

        – dlin
        Jun 26 '12 at 19:37





        Not really an answer,but good side-"answer"

        – dlin
        Jun 26 '12 at 19:37











        12



















        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 binfmt mechanism (and that its executable permissions are set).



        The most common format for executable is ELF, although some kernels can be compiled for support of the old a.out format. (For full technical details, binfmt_elf.c is where to look.)



        Another common mechanism is the "Shebang" system, handled by binfmt_script, which looks for #!/path/to/interpreter at the beginning of the file.



        binfmt_misc allows for the registration of other handlers, as documented here.



        If you fancy doing a bit of kernel programming, you can even write your own.



        Although not directly related, the file command should tell you whether a file is an ELF executable or something else.



        The naming convention has nothing to do with the executable status of a file (except when it's used for binfmt_misc registration). They're just conventions. Typically, a .exe file found on Linux could be a mono application, getting the .exe extension as a convention coming from the Windows/.Net world.



        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 .txt, .tar.gz or .deb, for example: the files are not executables nor executed, but what you use to double-click chooses which executable to launch to open these files.






        share|improve this answer



























        • I think this is better as a comment on the side of one of the more-inclusive answers.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 12:27











        • @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

          – Bruno
          Aug 13 '12 at 13:03











        • I did not downvote. I felt as the vote should stay as is.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:04











        • @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

          – Bruno
          Aug 13 '12 at 13:09












        • OK. No problem.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:11















        12



















        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 binfmt mechanism (and that its executable permissions are set).



        The most common format for executable is ELF, although some kernels can be compiled for support of the old a.out format. (For full technical details, binfmt_elf.c is where to look.)



        Another common mechanism is the "Shebang" system, handled by binfmt_script, which looks for #!/path/to/interpreter at the beginning of the file.



        binfmt_misc allows for the registration of other handlers, as documented here.



        If you fancy doing a bit of kernel programming, you can even write your own.



        Although not directly related, the file command should tell you whether a file is an ELF executable or something else.



        The naming convention has nothing to do with the executable status of a file (except when it's used for binfmt_misc registration). They're just conventions. Typically, a .exe file found on Linux could be a mono application, getting the .exe extension as a convention coming from the Windows/.Net world.



        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 .txt, .tar.gz or .deb, for example: the files are not executables nor executed, but what you use to double-click chooses which executable to launch to open these files.






        share|improve this answer



























        • I think this is better as a comment on the side of one of the more-inclusive answers.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 12:27











        • @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

          – Bruno
          Aug 13 '12 at 13:03











        • I did not downvote. I felt as the vote should stay as is.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:04











        • @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

          – Bruno
          Aug 13 '12 at 13:09












        • OK. No problem.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:11













        12















        12











        12









        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 binfmt mechanism (and that its executable permissions are set).



        The most common format for executable is ELF, although some kernels can be compiled for support of the old a.out format. (For full technical details, binfmt_elf.c is where to look.)



        Another common mechanism is the "Shebang" system, handled by binfmt_script, which looks for #!/path/to/interpreter at the beginning of the file.



        binfmt_misc allows for the registration of other handlers, as documented here.



        If you fancy doing a bit of kernel programming, you can even write your own.



        Although not directly related, the file command should tell you whether a file is an ELF executable or something else.



        The naming convention has nothing to do with the executable status of a file (except when it's used for binfmt_misc registration). They're just conventions. Typically, a .exe file found on Linux could be a mono application, getting the .exe extension as a convention coming from the Windows/.Net world.



        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 .txt, .tar.gz or .deb, for example: the files are not executables nor executed, but what you use to double-click chooses which executable to launch to open these files.






        share|improve this answer
















        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 binfmt mechanism (and that its executable permissions are set).



        The most common format for executable is ELF, although some kernels can be compiled for support of the old a.out format. (For full technical details, binfmt_elf.c is where to look.)



        Another common mechanism is the "Shebang" system, handled by binfmt_script, which looks for #!/path/to/interpreter at the beginning of the file.



        binfmt_misc allows for the registration of other handlers, as documented here.



        If you fancy doing a bit of kernel programming, you can even write your own.



        Although not directly related, the file command should tell you whether a file is an ELF executable or something else.



        The naming convention has nothing to do with the executable status of a file (except when it's used for binfmt_misc registration). They're just conventions. Typically, a .exe file found on Linux could be a mono application, getting the .exe extension as a convention coming from the Windows/.Net world.



        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 .txt, .tar.gz or .deb, for example: the files are not executables nor executed, but what you use to double-click chooses which executable to launch to open these files.







        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Aug 13 '12 at 13:25

























        answered Jun 26 '12 at 20:52









        BrunoBruno

        4012 silver badges10 bronze badges




        4012 silver badges10 bronze badges















        • I think this is better as a comment on the side of one of the more-inclusive answers.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 12:27











        • @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

          – Bruno
          Aug 13 '12 at 13:03











        • I did not downvote. I felt as the vote should stay as is.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:04











        • @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

          – Bruno
          Aug 13 '12 at 13:09












        • OK. No problem.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:11

















        • I think this is better as a comment on the side of one of the more-inclusive answers.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 12:27











        • @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

          – Bruno
          Aug 13 '12 at 13:03











        • I did not downvote. I felt as the vote should stay as is.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:04











        • @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

          – Bruno
          Aug 13 '12 at 13:09












        • OK. No problem.

          – Reinstate Monica - ζ--
          Aug 13 '12 at 13:11
















        I think this is better as a comment on the side of one of the more-inclusive answers.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 12:27





        I think this is better as a comment on the side of one of the more-inclusive answers.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 12:27













        @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

        – Bruno
        Aug 13 '12 at 13:03





        @ObsessiveFOSS, but does it deserve a downvote? No one had mentioned mono before my answe. No answer here really talks about how Linux executables really work (see my comment about binfmt on the accepted answer) anyway.

        – Bruno
        Aug 13 '12 at 13:03













        I did not downvote. I felt as the vote should stay as is.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 13:04





        I did not downvote. I felt as the vote should stay as is.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 13:04













        @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

        – Bruno
        Aug 13 '12 at 13:09






        @ObsessiveFOSS, no problem. I've also noticed that the question had been edited since I answered it, changing a bit its meaning (I understood it initially as "I have an exe file, I can't run it...") and making my answer less relevant indeed.

        – Bruno
        Aug 13 '12 at 13:09














        OK. No problem.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 13:11





        OK. No problem.

        – Reinstate Monica - ζ--
        Aug 13 '12 at 13:11











        2



















        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.






        share|improve this answer






















        • 5





          I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

          – MvG
          Jun 26 '12 at 19:42











        • that IS correct! :)

          – dlin
          Jun 26 '12 at 20:23















        2



















        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.






        share|improve this answer






















        • 5





          I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

          – MvG
          Jun 26 '12 at 19:42











        • that IS correct! :)

          – dlin
          Jun 26 '12 at 20:23













        2















        2











        2









        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.






        share|improve this answer
















        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.







        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Jun 26 '12 at 19:28

























        answered Jun 26 '12 at 19:22









        dlindlin

        2,9112 gold badges16 silver badges34 bronze badges




        2,9112 gold badges16 silver badges34 bronze badges










        • 5





          I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

          – MvG
          Jun 26 '12 at 19:42











        • that IS correct! :)

          – dlin
          Jun 26 '12 at 20:23












        • 5





          I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

          – MvG
          Jun 26 '12 at 19:42











        • that IS correct! :)

          – dlin
          Jun 26 '12 at 20:23







        5




        5





        I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

        – MvG
        Jun 26 '12 at 19:42





        I'd rather compare the .deb files on Debian-derived systems to the .msi files for Microsoft Installer…

        – MvG
        Jun 26 '12 at 19:42













        that IS correct! :)

        – dlin
        Jun 26 '12 at 20:23





        that IS correct! :)

        – dlin
        Jun 26 '12 at 20:23











        2



















        There is no equivalent to the exe file extension in Windows to indicate a file is executable. Instead, executable files can have any extension, and typically have no extension at all.



        Linux/Unix uses file permissions to indicate if a file may be executed. Specifically, there is an execute file permission that tells the system that this file is allowed to be executed. However, the absence of this permission does not indicate that the file isn't an executable; merely that the relevant user is not allowed to try to execute it. Similarly the presence of this permission does not always indicate that the file is a valid executable.



        Linux/Unix has a binary executable file format called ELF which is an equivalent to the PE (Windows) or MZ/NE (DOS) binary executable formats which usually bear the extension .exe



        However, other types of files may be executable, depending on the shell. Typically, if you try to execute a file that the system does not recognise as a binary executable (eg, ELF format), then it is interpreted by the current shell interpreter. This fulfills the same effect as batch files in Windows or DOS, except that again, it is not the extension that identifies its type or how to execute it.



        Shell files may optionally begin with a hashbang (first two characters in the file are #! followed by a path to an interpreter) in which case rather than interpret the rest of the file with the current shell interpreter, it can launch an alternative shell or interpreter to execute the file. Thus, you can have a script in any interpreted language and still have it run with the correct interpreter when trying to execute the script.






        share|improve this answer

























        • Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

          – Tamsyn Michael
          Jun 25 '15 at 17:11















        2



















        There is no equivalent to the exe file extension in Windows to indicate a file is executable. Instead, executable files can have any extension, and typically have no extension at all.



        Linux/Unix uses file permissions to indicate if a file may be executed. Specifically, there is an execute file permission that tells the system that this file is allowed to be executed. However, the absence of this permission does not indicate that the file isn't an executable; merely that the relevant user is not allowed to try to execute it. Similarly the presence of this permission does not always indicate that the file is a valid executable.



        Linux/Unix has a binary executable file format called ELF which is an equivalent to the PE (Windows) or MZ/NE (DOS) binary executable formats which usually bear the extension .exe



        However, other types of files may be executable, depending on the shell. Typically, if you try to execute a file that the system does not recognise as a binary executable (eg, ELF format), then it is interpreted by the current shell interpreter. This fulfills the same effect as batch files in Windows or DOS, except that again, it is not the extension that identifies its type or how to execute it.



        Shell files may optionally begin with a hashbang (first two characters in the file are #! followed by a path to an interpreter) in which case rather than interpret the rest of the file with the current shell interpreter, it can launch an alternative shell or interpreter to execute the file. Thus, you can have a script in any interpreted language and still have it run with the correct interpreter when trying to execute the script.






        share|improve this answer

























        • Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

          – Tamsyn Michael
          Jun 25 '15 at 17:11













        2















        2











        2









        There is no equivalent to the exe file extension in Windows to indicate a file is executable. Instead, executable files can have any extension, and typically have no extension at all.



        Linux/Unix uses file permissions to indicate if a file may be executed. Specifically, there is an execute file permission that tells the system that this file is allowed to be executed. However, the absence of this permission does not indicate that the file isn't an executable; merely that the relevant user is not allowed to try to execute it. Similarly the presence of this permission does not always indicate that the file is a valid executable.



        Linux/Unix has a binary executable file format called ELF which is an equivalent to the PE (Windows) or MZ/NE (DOS) binary executable formats which usually bear the extension .exe



        However, other types of files may be executable, depending on the shell. Typically, if you try to execute a file that the system does not recognise as a binary executable (eg, ELF format), then it is interpreted by the current shell interpreter. This fulfills the same effect as batch files in Windows or DOS, except that again, it is not the extension that identifies its type or how to execute it.



        Shell files may optionally begin with a hashbang (first two characters in the file are #! followed by a path to an interpreter) in which case rather than interpret the rest of the file with the current shell interpreter, it can launch an alternative shell or interpreter to execute the file. Thus, you can have a script in any interpreted language and still have it run with the correct interpreter when trying to execute the script.






        share|improve this answer














        There is no equivalent to the exe file extension in Windows to indicate a file is executable. Instead, executable files can have any extension, and typically have no extension at all.



        Linux/Unix uses file permissions to indicate if a file may be executed. Specifically, there is an execute file permission that tells the system that this file is allowed to be executed. However, the absence of this permission does not indicate that the file isn't an executable; merely that the relevant user is not allowed to try to execute it. Similarly the presence of this permission does not always indicate that the file is a valid executable.



        Linux/Unix has a binary executable file format called ELF which is an equivalent to the PE (Windows) or MZ/NE (DOS) binary executable formats which usually bear the extension .exe



        However, other types of files may be executable, depending on the shell. Typically, if you try to execute a file that the system does not recognise as a binary executable (eg, ELF format), then it is interpreted by the current shell interpreter. This fulfills the same effect as batch files in Windows or DOS, except that again, it is not the extension that identifies its type or how to execute it.



        Shell files may optionally begin with a hashbang (first two characters in the file are #! followed by a path to an interpreter) in which case rather than interpret the rest of the file with the current shell interpreter, it can launch an alternative shell or interpreter to execute the file. Thus, you can have a script in any interpreted language and still have it run with the correct interpreter when trying to execute the script.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jun 25 '15 at 15:40









        thomasrutterthomasrutter

        29.3k4 gold badges72 silver badges92 bronze badges




        29.3k4 gold badges72 silver badges92 bronze badges















        • Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

          – Tamsyn Michael
          Jun 25 '15 at 17:11

















        • Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

          – Tamsyn Michael
          Jun 25 '15 at 17:11
















        Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

        – Tamsyn Michael
        Jun 25 '15 at 17:11





        Whoah, I nearly answered this too. Look at the date, this post is a dinosaur.

        – Tamsyn Michael
        Jun 25 '15 at 17:11











        1



















        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 ls.



        In the unix file system binary executable files are generally stored in there own location.



        1. /bin (core binaries)

        2. /sbin (system binaries)

        3. /usr/bin (application binaries)

        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






        share|improve this answer





























          1



















          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 ls.



          In the unix file system binary executable files are generally stored in there own location.



          1. /bin (core binaries)

          2. /sbin (system binaries)

          3. /usr/bin (application binaries)

          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






          share|improve this answer



























            1















            1











            1









            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 ls.



            In the unix file system binary executable files are generally stored in there own location.



            1. /bin (core binaries)

            2. /sbin (system binaries)

            3. /usr/bin (application binaries)

            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






            share|improve this answer














            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 ls.



            In the unix file system binary executable files are generally stored in there own location.



            1. /bin (core binaries)

            2. /sbin (system binaries)

            3. /usr/bin (application binaries)

            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







            share|improve this answer













            share|improve this answer




            share|improve this answer










            answered Jun 26 '12 at 19:36









            MoogMoog

            3531 silver badge13 bronze badges




            3531 silver badge13 bronze badges
























                0



















                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






                share|improve this answer





























                  0



















                  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






                  share|improve this answer



























                    0















                    0











                    0









                    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






                    share|improve this answer














                    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







                    share|improve this answer













                    share|improve this answer




                    share|improve this answer










                    answered Aug 16 '12 at 12:24









                    TachyonsTachyons

                    15.8k14 gold badges66 silver badges113 bronze badges




                    15.8k14 gold badges66 silver badges113 bronze badges
























                        0



















                        Any filename can be set to executable regardless of extension, but the file needs to have the appropriate permission set. The permission may be given by right-clicking the file in Nautilus, clicking Properties, and ticking the "Allow executing file as program" checkbox:



                        menu item showing Execute: -checkbox- Allow executing file as program






                        share|improve this answer



























                        • I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                          – Elder Geek
                          Apr 24 '15 at 1:26















                        0



















                        Any filename can be set to executable regardless of extension, but the file needs to have the appropriate permission set. The permission may be given by right-clicking the file in Nautilus, clicking Properties, and ticking the "Allow executing file as program" checkbox:



                        menu item showing Execute: -checkbox- Allow executing file as program






                        share|improve this answer



























                        • I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                          – Elder Geek
                          Apr 24 '15 at 1:26













                        0















                        0











                        0









                        Any filename can be set to executable regardless of extension, but the file needs to have the appropriate permission set. The permission may be given by right-clicking the file in Nautilus, clicking Properties, and ticking the "Allow executing file as program" checkbox:



                        menu item showing Execute: -checkbox- Allow executing file as program






                        share|improve this answer
















                        Any filename can be set to executable regardless of extension, but the file needs to have the appropriate permission set. The permission may be given by right-clicking the file in Nautilus, clicking Properties, and ticking the "Allow executing file as program" checkbox:



                        menu item showing Execute: -checkbox- Allow executing file as program







                        share|improve this answer















                        share|improve this answer




                        share|improve this answer








                        edited Apr 24 '15 at 1:27









                        Elder Geek

                        29.9k13 gold badges71 silver badges146 bronze badges




                        29.9k13 gold badges71 silver badges146 bronze badges










                        answered Apr 24 '15 at 0:27









                        TerrarianTerrarian

                        151 gold badge1 silver badge7 bronze badges




                        151 gold badge1 silver badge7 bronze badges















                        • I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                          – Elder Geek
                          Apr 24 '15 at 1:26

















                        • I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                          – Elder Geek
                          Apr 24 '15 at 1:26
















                        I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                        – Elder Geek
                        Apr 24 '15 at 1:26





                        I would like to point out that any filename can be made executable, not any file type as the phrase "Any file" seems to indicate. editing for clarity.

                        – Elder Geek
                        Apr 24 '15 at 1:26











                        -3



















                        .deb Debian Package for Linux and TAR archive compressed with the standard GNU zip (gzip) compression algorithm; contains one or more compressed files; commonly used on Unix operating systems to package files, programs, and installers.



                        NOTE: TAR.GZ files must first be decompressed and then expanded using a TAR utility. They include both .TAR and .GZ file types.






                        share|improve this answer































                          -3



















                          .deb Debian Package for Linux and TAR archive compressed with the standard GNU zip (gzip) compression algorithm; contains one or more compressed files; commonly used on Unix operating systems to package files, programs, and installers.



                          NOTE: TAR.GZ files must first be decompressed and then expanded using a TAR utility. They include both .TAR and .GZ file types.






                          share|improve this answer





























                            -3















                            -3











                            -3









                            .deb Debian Package for Linux and TAR archive compressed with the standard GNU zip (gzip) compression algorithm; contains one or more compressed files; commonly used on Unix operating systems to package files, programs, and installers.



                            NOTE: TAR.GZ files must first be decompressed and then expanded using a TAR utility. They include both .TAR and .GZ file types.






                            share|improve this answer
















                            .deb Debian Package for Linux and TAR archive compressed with the standard GNU zip (gzip) compression algorithm; contains one or more compressed files; commonly used on Unix operating systems to package files, programs, and installers.



                            NOTE: TAR.GZ files must first be decompressed and then expanded using a TAR utility. They include both .TAR and .GZ file types.







                            share|improve this answer















                            share|improve this answer




                            share|improve this answer








                            edited Jun 25 '15 at 17:00

























                            answered Jun 25 '15 at 14:49









                            Shanmugasundharam selvaduraiShanmugasundharam selvadurai

                            953 bronze badges




                            953 bronze badges
























                                Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.












                                Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.











                                Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.





                                Highly active question. Earn 10 reputation in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.


                                Popular posts from this blog

                                Tamil (spriik) Luke uk diar | Nawigatjuun

                                Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                                Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?