executable
A file the operating system can load and run as a program, such as a compiled binary or a script with execute permission.
In more detail
Running it creates a process with the program loaded into memory. On macOS and Linux a file becomes executable when its execute permission is set, for example with chmod +x, and a script also needs a shebang line naming its interpreter. On Windows, executables usually end in .exe.
Related terms
- process — A program that is currently running, with its own memory and a numeric identifier.
- read, write and execute permissions — The three basic permissions in a file mode: read (r, 4) to view, write (w, 2) to change and execute (x, 1) to run.
- bin directory — A directory that holds executable programs, such as /usr/bin for everyday commands and /usr/sbin for administration tools.
- setuid — A permission bit on an executable that makes it run with the file owner's identity instead of the identity of the user who started it.
- installer — A program whose job is to copy another program onto your computer and set it up.
- shebang — The first line of a script, starting with #!, that names the program the operating system should use to run it.
- file permissions — Rules on each file saying which user and group own it and who may read, write or run it.
Taught in
- Setuid, Setgid, And Root Through sudo — Linux Fundamentals & Systems Administration
- What A Process Is — Linux Fundamentals & Systems Administration
- Installing Python On Windows — Hands-on Python: Complete Video Course & Book
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- Where Python Lives: PATH And Versions — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book