---
id: 20260825-T0-09
title: "Linux技巧：把SQLite数据库当可执行文件用"
title_en: "Linux trick: make a SQLite database directly executable"
url: https://ai.daily.yangsir.net/daily/20260825-T0-09
issue_date: 2026-08-25
publish_date: 2026-08-24T11:38:15.000Z
category: tools
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Aug/24/your-executable-is-a-sqlite-database/
---

# Linux技巧：把SQLite数据库当可执行文件用

Farid Zakaria 介绍了一种 Linux 模式：通过设置 SQLite 文件格式中 4 字节的应用 ID（文件偏移 68 字节）为 SELF（结构化可执行文件），将 SQLite 数据库文件直接用作可执行二进制文件。

## English Version

**Linux trick: make a SQLite database directly executable**

Farid Zakaria describes a Linux pattern for setting a SQLite file's 4-byte application ID to SELF, making the database file directly executable.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Aug/24/your-executable-is-a-sqlite-database/)

**详情页**：https://ai.daily.yangsir.net/daily/20260825-T0-09

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*