.EXEC

Файл EXEC

Unix Executable File
Задать вопрос
БЫСТРЫЙ ОТВЕТ

A .exec file is a Unix/Linux/macOS executable - a program or script meant to be run, not viewed. On Linux or macOS open a terminal, run "chmod +x file.exec" then "./file.exec". Never run a .exec from an untrusted source; it executes with your full user privileges.

Разработчик: N/A (generic Unix/Linux/macOS convention) Категория: Исполняемые файлы MIME: application/x-executable
ОТКРЫВАЕТСЯ НА Windows macOS Linux
Связанные: .APK · .EXE · .VBS · .JAR

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Aug 13, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла EXEC?

Executable files for Unix and Unix-like systems can be saved with the .exec extension. A .exec file can hold virtually any program executable on a given operating system - either a compiled binary (such as an ELF binary on Linux/Unix) or a plain-text interpreter script. .exec has its counterpart in the form of .exe files on Windows systems.

As a rule on Unix systems, executable files are saved without any extension - the .exec suffix is used to mark executable files in file managers and IDEs on macOS, Linux, or FreeBSD, distinguishing the runnable output from source files.

The ability to execute a .exec file is determined by the file's permission bits and its internal header, not the extension. The kernel checks magic bytes at offset 0: ELF binaries begin with \x7FELF, macOS Mach-O binaries with FEEDFACE, and scripts with #! followed by an interpreter path (e.g., #!/bin/bash for a .sh script).

.exec files can be run from the command line (shell). On macOS, the executable bit (the x permission attribute) is what matters - a file runs correctly with or without the .exec extension. Before running an unfamiliar .exec file, use the file command to confirm its actual type.

Безопасность и защита

РИСК: HIGH

An executable is the highest-risk file type to run from an untrusted source: a .exec runs with your user privileges and can read, modify, encrypt or delete your files and download more code. Before running one you didn't build: run 'file file.exec' to see what it is, and if it's a text script, read it first. On macOS, Gatekeeper will block unsigned/unnotarized binaries by default - that warning is there for your protection. Never blindly 'chmod +x' and run a file from a forum, email or random download. The extension '.exec' confers no safety; trust the source, not the suffix.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕUnix Executable Fileтакже известен как Unix executable, executable script
РАЗРАБОТЧИКN/A (generic Unix/Linux/macOS convention)с N/A (extension-less executables predate the .exec label; concept from early Unix)
MIME-ТИПapplication/x-executable
ТИПExecutable program or script (ELF/Mach-O binary, or text shell script)
СВЯЗАННЫЕ.apk.exe.vbs.jar
Это расширение также используется в…
  • Application/IDE export marker - Some build tools and apps name their produced runnable artifact *.exec purely as a label; the real type underneath is still ELF/Mach-O/script.
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
00010203
HEX
7F454C46
ASCII
·ELF
A .exec has no signature of its own - it depends on what kind of executable it is. A compiled Linux/Unix binary is ELF: 7F 45 4C 46 ("\x7FELF") at offset 0. A shebang script starts with "#!" (23 21) followed by an interpreter path. A compiled macOS binary is Mach-O: magic FE ED FA CE (32-bit) / FE ED FA CF (64-bit), or the CA FE BA BE universal/"fat" header. On Unix, executability is set by the file's permission bits, not the extension.

Программы, открывающие файлы EXEC

Windows2 apps
WSL (Windows Subsystem for Linux) Встроенная Run a Linux ELF .exec inside WSL: 'chmod +x file.exec && ./file.exec'. A Linux binary will not run in native Windows.
7-Zip (inspect only) Открытый код 7-Zip can list sections of an ELF/Mach-O to inspect a binary without executing it; it cannot run it.
macOS2 apps
Terminal (built-in) Встроенная chmod +x file.exec then ./file.exec . If Gatekeeper blocks it, allow it under System Settings → Privacy & Security.
file command (inspect first) Встроенная Run 'file file.exec' to reveal whether it's an ELF binary, a script, or something else before running it.
Linux3 apps
Shell / terminal (built-in) Встроенная chmod +x file.exec then ./file.exec - sets execute permission and runs it.
file command (inspect first) Открытый код Run 'file file.exec' to reveal whether it's an ELF binary, a script, or something else before running it.
Text editor (for scripts) Открытый код If 'file' reports a text/shell script, open it in any editor to read it before executing.

Технические подробности

глубокая спецификация
EncodingBinary (ELF or Mach-O compiled code) or plain text (interpreter script with shebang)
Binary format on Linux/UnixELF (Executable and Linkable Format) - magic bytes 7F 45 4C 46 ("\x7FELF") at offset 0
Binary format on macOSMach-O - magic FE ED FA CE (32-bit) or FE ED FA CF (64-bit); fat/universal binaries use CA FE BA BE
Script markerShebang (#!) at byte offset 0 followed by interpreter path, e.g. #!/usr/bin/env python3 - parsed by the kernel before execution
MIME typeapplication/x-executable (Linux binary); application/x-mach-binary (macOS); application/x-shellscript (text script)
Execution controlUnix permission bits - the executable (x) bit must be set; the .exec extension itself is ignored by the kernel
Target platformLinux, macOS, BSD variants (FreeBSD, OpenBSD, NetBSD), Solaris, and other Unix-like systems
Byte orderLittle-endian for x86-64 and ARM (most modern hardware); big-endian on legacy RISC Unix platforms such as SPARC and MIPS
Typical file size1 KB (minimal shell script) to tens of MB (statically linked compiled binary)
Architecture encodingEmbedded in ELF e_machine field (x86-64 = 0x3E, ARM64 = 0xB7, RISC-V = 0xF3) or Mach-O cputype/cpusubtype fields
Code integrityNo inherent checksum in the format; macOS supports code signing via the codesign tool; Linux relies on external GPG or package-manager signatures
CompressionNot built-in to the format; binaries may be UPX-packed or wrapped in a self-extracting shell script
Extension conventionThe .exec suffix is informal - most native Unix executables carry no extension; the OS uses magic bytes, not the filename, to determine how to run the file
Windows counterpart.exe (PE/COFF format) - the extension is mandatory on Windows, unlike .exec which is optional on Unix
Inspection commandThe file command identifies the actual binary type (ELF, Mach-O, or script interpreter) regardless of the .exec extension
ВыпущенN/A (extension-less executables predate the .exec label; concept from early Unix)
Последняя версияN/A - .exec is a convention, not a versioned format
Спецификацияrefspecs.linuxfoundation.org

Конвертации EXEC

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами EXEC. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах EXEC.

Часто задаваемые вопросы

What is a .exec file?
It is a Unix/Linux/macOS executable - a file meant to be run as a program. Inside it is either a compiled binary (ELF on Linux, Mach-O on macOS) or a text script. The extension is just a label; Unix decides how to run it from the file's contents and permissions.
How do I run a .exec file on Linux or macOS?
Open a terminal, make it executable with 'chmod +x file.exec', then run it with './file.exec'. On macOS you may also need to allow it in System Settings → Privacy & Security if Gatekeeper blocks it.
Why does my .exec say 'permission denied'?
Unix won't run a file unless its execute bit is set. Run 'chmod +x file.exec' first, then './file.exec'. If it's on a noexec mount (like some downloads folders), move it elsewhere.
Can I run a Linux .exec on Windows or a Mac?
Not directly. A Linux ELF binary needs WSL on Windows, and won't run on macOS at all (and vice versa). Compiled executables are OS- and CPU-specific; you'd need a version built for that system.
How do I know if a .exec is a binary or a script?
Run 'file file.exec' in a terminal. It will tell you if it's an ELF/Mach-O binary or a shell/Python/etc. script. If it's a script, you can open it in a text editor and read it.
Is it safe to run a .exec file?
Only if you trust where it came from. An executable can do anything your account can. Inspect it with 'file' (and read it if it's a script), keep macOS Gatekeeper on, and don't run executables from untrusted emails or downloads.

Ссылки

1Microsoft - Windows Subsystem for Linuxlearn.microsoft.com
2Linux Foundation - ELF (Executable and Linkable Format) specrefspecs.linuxfoundation.org

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Похожие расширения

.APKAndroid Package
.EXEWindows Executable (Portable Executable)
.VBSVBScript file (Visual Basic Script)
.JARJava Archive
.EX4MetaTrader 4 Compiled Program (Expert Advisor / Indicator / Script)
.APPXMicrosoft Windows App Package (AppX)

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z