bin directory
A directory that holds executable programs, such as /usr/bin for everyday commands and /usr/sbin for administration tools.
In more detail
The name comes from binary, meaning a compiled program. On most current distributions /bin and /sbin are links to /usr/bin and /usr/sbin. The shell searches directories listed in the PATH environment variable, which normally include these, when you type a command name.
Related terms
- Filesystem Hierarchy Standard — The convention that says what each top-level Linux directory, such as /etc, /var and /home, is for.
- executable — A file the operating system can load and run as a program, such as a compiled binary or a script with execute permission.
- environment variable — A named setting such as PORT=8000 that a program reads from its surroundings when it starts.
Taught in
- The Filesystem Hierarchy — Linux Fundamentals & Systems Administration
- The App In /bin That Vanished: The FHS, Distributions And Licences — CompTIA Linux+ (XK0-006) Exam Prep
- A Card With No Driver, A Stick With Too Much: Devices And Kernel Modules — CompTIA Linux+ (XK0-006) Exam Prep
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- The Pager Command That Opened A Root Shell: sudo, su And Least Privilege — CompTIA Linux+ (XK0-006) Exam Prep
- Three Audit Findings And A Phone: Password Policy, Lockouts And MFA — CompTIA Linux+ (XK0-006) Exam Prep
- You Are In Emergency Mode: Boot Failures From GRUB To fstab, On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep