Everyday Guidebooks
Cover of Linux Essentials

Cybersecurity & IT

Linux Essentials: From Source Code to Running Program

An Unofficial Study Guide to Open-Source Licensing, Applications, Programming Languages, and Package Repositories

by Todd Michael

Available now

What happens between a programmer writing source code and a Linux user launching an application? Understanding that journey can make several Linux Essentials exam topics much easier to remember.

This focused linux essentials study guide explains four connected areas: open-source licensing, common application types, programming-language basics, and the role of package repositories. You'll learn to distinguish source code from executable programs, compare permissive and copyleft licenses, recognize familiar categories of Linux applications, and understand how package managers obtain software and handle dependencies.

Short examples and carefully explained distinctions turn unfamiliar terminology into useful mental models. Original review questions and answer explanations give you opportunities to check your understanding without relying on real exam questions. A final mixed review helps you connect the concepts across topics.

Written for beginners, this independent companion concentrates on the software concepts described above; it is not a comprehensive guide to every Linux Essentials exam objective. No prior programming experience is required.

Contents
  1. 1. Following Software from Idea to Execution
  2. 2. Source Code, Executables, and the Build Process
  3. 3. Programming Languages and How They Run
  4. 4. Recognizing Common Linux Languages
  5. C: Close to the Operating System
  6. Python: Readable Programs and Automation
  7. Shell Scripting: Coordinating Commands
  8. Java: Source, Bytecode, and a Virtual Machine
  9. JavaScript: More Than a Browser Language
  10. Compare the Clues, Not Just the Names
  11. Short Reading Exercises
  12. Choosing the Best Answer Under Exam Conditions
  13. 5. Scripts, Shells, and Running Programs
  14. 6. Software Freedom and Licensing Basics
  15. 7. Permissive and Copyleft Licenses
  16. 8. Application Types for Everyday Work
  17. Categories and Products
  18. Office Suites and Productivity Applications
  19. Web Browsers
  20. Email Clients
  21. Graphics Applications
  22. Media Players
  23. Choosing by Task, Not by Reputation
  24. Practice Questions
  25. From Everyday Applications to Other Software
  26. 9. Server, Development, and System Applications
  27. 10. Packages and Package Managers
  28. 11. Repositories and the Software Supply Chain
  29. 12. Choosing and Obtaining Linux Software
  30. 13. Distinctions That Deserve a Second Look
  31. 14. Mixed Review and Next Steps
  32. Mixed Practice Set
  33. Answers and Explanations
  34. Turn Your Results into a Review Plan
  35. Prepare Beyond This Book
  36. Other Books by Todd Michael

Read a sample: 1. Following Software from Idea to Execution

A Linux computer can browse the web, edit a photograph, serve a website, or help a programmer build another program. Those tasks look unrelated, but the software behind them shares a useful story: someone created instructions, made choices about how others could use them, and found a way to deliver those instructions to a computer that could run them.

This book follows that story from the human-readable beginnings of software to a running program. Along the way, you will meet programming languages, licenses, applications, packages, and repositories. These topics often appear separately in study materials, but they become easier to remember when you can see how they connect.

You do not need to be a programmer to follow the journey. You do need to become comfortable asking precise questions: Is this code a person reads, or something a computer runs? Is this a legal permission, a price, or a technical property? Is the software installed on this machine, or merely available from a source?

Imagine that a community garden needs a simple way to track which plots are available. A volunteer decides to create a tool that records plot numbers and displays their status.

The need comes first: people want reliable information about the garden. A spreadsheet might be enough. A web application could allow several people to check information from their own devices. A small command-line program might suit one person maintaining the records on a Linux computer.

An application type describes the general kind of work software performs or the way people use it. A spreadsheet application, web browser, database server, and text editor have different jobs. A specific product is an example of an application, not the category itself.

Suppose the volunteer chooses to create a small program. How will the intended behavior be expressed so that a computer can carry it out?

A programmer normally writes instructions in a programming language. The resulting text is called source code. It can describe operations such as accepting a plot number, checking stored information, and displaying a message.

Source code is written in a form people can inspect and modify, although understanding it may require knowledge of the language and the project. Source files might be accompanied by documentation, configuration files, tests, and other materials. The code expresses instructions and structures according to the rules of its language.

C, Python, Java, and JavaScript are examples of programming languages. A shell language can also be used to write scripts that direct a command interpreter to perform tasks. Each language has its own conventions and common uses.

A language is not the same thing as an implementation of that language. The language provides rules and expressions; an interpreter or compiler is software that processes programs written in it. Saying “Python” might refer to the language in one sentence and a Python implementation in another, so context matters.

One common path uses a compiler to translate source code into another form, often producing machine code suitable for a particular kind of system. A build may include several steps: compiling source files, linking them with needed code, and producing an executable file.

An executable file is a file intended to be run as a program. In a typical compiled application, it can contain machine code that the processor can execute. It is a different artifact from the source files used to create it. Having an executable does not automatically mean you have its source code, and having source code does not mean a finished executable has already been built.

Another common path uses an interpreter, a program that processes instructions from another program and carries out their effects. For example, a shell can read a shell script and execute the commands it contains.

These are starting models, not rigid boxes for every language. Some implementations translate code into an intermediate form and use a virtual machine or other runtime software to execute it. A runtime environment supplies services or components a program needs while it runs. Rather than assume that a language can only ever be compiled or interpreted, ask how a particular implementation runs a program.

Chapters 2 and 3 explore these models in more detail. For now, notice that source code, a compiler, an interpreter, and an executable have different roles in the journey.

When the garden volunteer’s program is ready, it might sit on a computer’s storage as one or more files. Those files are not the same thing as a running instance of the program.

A process is an instance of a program in execution. When a user starts an application, the operating system creates and manages the resources associated with its execution. Depending on the application, starting it may involve more than one process.

An application can be installed without currently running. Installation places and configures software for use; running starts an instance. Compilation is separate again: it translates code rather than simply launching an already prepared program.

Some programs rely on libraries, collections of code that provide functionality other programs can use. Instead of writing every operation from scratch, a developer can use a suitable library. A program may need particular libraries available when it is built or when it runs. Chapter 2 returns to this relationship without asking you to write code.

For the exam, identify what is happening in the scenario. Is someone editing instructions, producing an executable, installing software, or starting it? Each points…

More Cybersecurity & IT

Cover of The White Hat Bible, Volume 1The White Hat Bible, Volume 1Available nowCover of The White Hat Bible, Volume 2The White Hat Bible, Volume 2Available nowCover of The White Hat Bible, Volume 3The White Hat Bible, Volume 3Available nowCover of The White Hat Bible, Volume 4The White Hat Bible, Volume 4Available nowThe White Hat Bible, Volume 5Available nowCover of The White Hat Pocket GuideThe White Hat Pocket GuideAvailable now

About Todd Michael

Todd Michael is an American author and the founder of ToddMichael.tv. He writes practical, plain-English books on money, health, preparedness, technology, games, humor and more.

About the author Todd Michael · Todd Michael’s author site

Part of the ToddMichael.tv network.