Member-only story

DevOps in Linux — /bin and /usr/bin

Deep dive into Linux file system

Tony
3 min readJun 10, 2023
T

Note, full mind map is available at: “DevOps in Linux Mind Map

The Linux file system is organized in a specific structure, defined by the Filesystem Hierarchy Standard (FHS), which dictates the names, locations, and permissions of various directories.

Two key components of this structure are the /bin and /usr/bin directories. These directories are fundamental to how a Linux system operates, and understanding their purpose is essential for any DevOps engineer.

Overview

In a Linux system, both /bin and /usr/bin directories are used to store executable binaries, essential command files that users, administrators, and scripts use for a variety of tasks. However, their usage and historical context differ slightly.

Historically, the reason for the existence of both /bin and /usr/bin was due to storage limitations. Originally, /usr was mounted as a separate partition once the system was up and running. /bin would contain the necessary commands to mount /usr. However, with advancements in storage technology, this separation has become less relevant, yet the convention remains.

In recent years, some Linux distributions such as Fedora and Debian have begun merging /bin into…

--

--

Tony
Tony

No responses yet