ArticleslgStudy

science

Linux Standard Base

Linux Standard Base is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Linux Standard Base rather than just read about it. In short: The Linux Standard Base (LSB) was a joint project by several Linux distributions under the organizational structure of the Linux Foundation to standardize the software system structure, including the Filesystem Hierarchy Standard. LSB was based on the POSIX specification, the Single UNIX Specification (SUS), and several other open standards, but extended them in certain areas.

Linux Standard Base — main illustration
Linux Standard Base — illustration

Key takeaways

  • Linux Standard Base belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Linux Standard Base to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Linux Standard Base from memory before moving on to harder problems.

Reference excerpt

The Linux Standard Base (LSB) was a joint project by several Linux distributions under the organizational structure of the Linux Foundation to standardize the software system structure, including the Filesystem Hierarchy Standard. LSB was based on the POSIX specification, the Single UNIX Specification (SUS), and several other open standards, but extended them in certain areas. According to LSB:

The goal of the LSB is to develop and promote a set of open standards that will increase compatibility among Linux distributions and enable software applications to run on any compliant system even in binary form. In addition, the LSB will help coordinate efforts to recruit software vendors to port and write products for Linux Operating Systems.

LSB compliance might be certified for a product by a certification procedure. LSB specified standard libraries (centered around the ld-lsb.so), a number of commands and utilities that extended the POSIX standard, the layout of the file system hierarchy, run levels, the printing system, including spoolers such as CUPS and tools like Foomatic, and several extensions to the X Window System. It also specified boot facilities, such as $local_fs, $network, which were used to indicate service dependencies in System V-style initialization scripts. A machine readable comment block at the top of a script provided the information necessary to determine at which point of the initialization process the script should be invoked; it was called the LSB header. The command lsb_release -a was available in many systems to get the LSB version details, or could be made available by installing an appropriate package, for example the redhat-lsb package in Red-Hat-flavored distributions such as Fedora, or the lsb-release package in Debian-based distributions. The standard stopped being updated in 2015 and current Linux distributions do not adhere to or offer it; however, the lsb_release command is sometimes still available. On February 7, 2023, a former maintainer of the LSB wrote, "The LSB project is essentially abandoned."

Backward compatibility

LSB was designed to be binary-compatible and produced a stable application binary interface (ABI) for independent software vendors. To provide backward compatibility, the LSB adopted an interface deprecation policy to give application developers enough time to adapt in case an interface was removed from LSB. An interface that was to be removed would first be marked as deprecated in an LSB release; that interface would still be supported in that release and at least two subsequent LSB releases. This allowed the developer to rely on every interface in LSB for a known time and also to plan for changes. LSB 5.0 was the first major release that broke backward compatibility with earlier versions, as it removed Qt 3; applications dynamically linked with Qt 3 libraries were not guaranteed to run on all LSB 5.0-compliant distributions.

Version history 1.0: Initial release June 29, 2001. 1.1: Released January 22, 2002. Added hardware-specific specifications (IA-32). 1.2: Released June 28, 2002. Added hardware-specific specifications (PowerPC 32-bit). Certification began July 2002. 1.2.1: Released October 2002. Added Itanium. 1.3: Released December 17, 2002. Added hardware-specific specifications (Itanium, Enterprise System Architecture/390, z/Architecture). 2.0: Released August 31, 2004 LSB is modularized to LSB-Core, LSB-CXX, LSB-Graphics, and LSB-I18n (not released) New hardware-specific specifications (PowerPC 64-bit, AMD64) Synchronized to Single UNIX Specification (SUS) version 3 2.0.1: Released October 21, 2004, ISO version of LSB 2.0, which included specification for all hardware architectures (except LSB-Graphics, of which only a generic version is available). 2.1: Released March 11, 2005. 3.0: Released July 1, 2005. Among other library changes: GNU C Library version 2.3.4 C++ ABI is changed to the one used by gcc 3.4 The core specification is updated to ISO POSIX (2003) Technical Corrigenda 1: 2005 3.1: Released October 31, 2005. This version has been submitted as ISO/IEC 23360:2006. 3.2: Released January 28, 2008. This version has been submitted as ISO/IEC 23360:2006. 4.0: Released November 11, 2008. This version contains the following features: GNU C Library version 2.4 Binary compatibility with LSB 3.x Easier to use SDK Support for newer versions of GTK and Cairo graphical libraries Java (optional module) Simpler ways of creating LSB-compliant RPM packages Crypto API (via the Network Security Services library) (optional module) 4.1: Released February 16, 2011: Java removed "Trial Use" modules from LSB 4.0, covering multimedia (ALSA), security (NSS) and desktop miscellaneous (xdg-utils) have been promoted as required submodules Updated GTK+, Cairo and CUPS libraries Three new test suites added 5.0: Released June 2, 2015, This version has been submitted as ISO/IEC 23360:2021 GNU C Library version 2.10 (for psiginfo) First major release that breaks backward compatibility with earlier versions (compatible with LSB 3.0, and mostly compatible with LSB 3.1 and later, with some exceptions) Incorporates the changes made in FHS 3.0 Qt 3 library has been removed Evolved module strategy; LSB is modularized to LSB Core, LSB Desktop, LSB Languages, LSB Imaging, and LSB Trial Use

ISO/IEC standard The LSB, version 3.1, is registered as an official ISO/IEC international standard. The main parts of it are:

… excerpt ends here. Continue reading the full article.

Illustrations

Linux Standard Base illustration
Linux Standard Base: An example of LSB output in a terminal (Debian version 11)
An example of LSB output in a terminal (Debian version 11)
Linux Standard Base: LSB aims to make userspace binaries portable
LSB aims to make userspace binaries portable

Worked examples

Example 1 — a first encounter with Linux Standard Base

Start with the simplest possible case. Write down what Linux Standard Base claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Linux Standard Base before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Linux Standard Base ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Linux Standard Base

In research
Linux Standard Base appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Linux Standard Base in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Linux Standard Base is common in secondary-school and first-year university syllabi. It links to neighbouring topics ISO standards, Interfaces of the Linux kernel, Linux, so understanding it makes those chapters shorter.
In everyday life
Look for Linux Standard Base outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Linux Standard Base” →

How to study Linux Standard Base in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Linux Standard Base means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Linux Standard Base out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Linux Standard Base in simple terms?

The Linux Standard Base (LSB) was a joint project by several Linux distributions under the organizational structure of the Linux Foundation to standardize the software system structure, including the Filesystem Hierarchy Standard. LSB was based on the POSIX specification, the Single UNIX Specificat…

Why does Linux Standard Base matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Linux Standard Base?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Linux Standard Base.

Tags

  • ISO standards
  • Interfaces of the Linux kernel
  • Linux
  • Linux APIs
  • Linux Foundation

Keep exploring