linux-ops-cheatsheet

linux-ops-cheatsheet is a skill for Claude Code from Zandereins/schliff. It costs 103 tokens per session (2,111 once invoked), scanned B, original, MIT.

A Linux system-administration reference for checking memory and disk activity, managing background jobs, limiting usable memory, and rebooting an unresponsive machine.

In plain words
What is it for?
Use it to inspect RAM or disk I/O, keep a process running after logout, test low-memory conditions, or perform an emergency reboot on Linux.
Why use it?
It puts common server commands and their safety conditions in one place, including actions that require administrator access.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the schliff plugin — 18 skills, 1 hook shipped together

Good fit Use it to inspect RAM or disk I/O, keep a process running after logout, test low-memory conditions, or perform an emergency reboot on Linux.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zandereins/schliff/09-linux-ops-cheatsheet
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Zandereins/schliff --skill 09-linux-ops-cheatsheet
Clone the repo
git clone --depth 1 https://github.com/Zandereins/schliff

Made for: Claude Code.

Or install schliff, the plugin that ships this one along with the rest of its 18 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linux-ops-cheatsheet

README.md
[![agentmods](https://agentmods.dev/badge/skills/zandereins/schliff/09-linux-ops-cheatsheet/github.svg)](https://agentmods.dev/skills/zandereins/schliff/09-linux-ops-cheatsheet)
Your own site
<a href="https://agentmods.dev/skills/zandereins/schliff/09-linux-ops-cheatsheet"><img src="https://agentmods.dev/badge/skills/zandereins/schliff/09-linux-ops-cheatsheet/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linux-ops-cheatsheet

Your own site · 80×15
<a href="https://agentmods.dev/skills/zandereins/schliff/09-linux-ops-cheatsheet"><img src="https://agentmods.dev/badge/skills/zandereins/schliff/09-linux-ops-cheatsheet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.02111
Opus 5 $0.00051 $0.01056
Sonnet 5 $0.00021 $0.00422
Haiku 4.5 $0.00010 $0.00211

Measured 8d ago against content hash 51e0f4fde49a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

linux-ops-cheatsheet scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- `iostat` ships in the `sysstat` package (`sudo yum install sysstat` / `sudo dnf install sysstat`).
docs/research/rewrites/09-linux-ops-cheatsheet.SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Linux Ops Cheatsheet / Linux 运维速查

System-administration one-liners for Linux hosts. Read-only diagnostics are safe to run as-is. Commands that touch the kernel, the bootloader, or running processes carry explicit DANGER markers and confirmation gates — read them before you paste.

When to use / 何时使用

  • Inspect memory usage (free) or disk IO (iostat).
  • Cap the kernel's usable RAM for low-memory testing (mem= boot param).
  • Detach a foreground job to the background so it survives logout (bg + disown).
  • Force an unresponsive host to reboot via the SysRq interface — last resort only.

Do NOT use this skill for algorithm or data-structure design questions; the file name in the upstream corpus was mislabeled "algorithms" but the content is Linux ops.

Global preconditions / 全局前提

  • Distro examples target Red Hat / Fedora family. Paths differ on Debian/Ubuntu/SUSE.
  • Bootloader and SysRq actions require root (sudo or a root shell).
  • iostat ships in the sysstat package (sudo yum install sysstat / sudo dnf install sysstat).

1. Memory usage (read-only / 只读) — 查看内存使用情况

No guard needed; this only reads counters.

free -m          # show memory usage in MB / 以 MB 为单位查看内存使用情况

Verify: output prints Mem: and Swap: rows. Add -h for human-readable units.


2. Disk IO statistics (read-only / 只读) — 查看系统的 IO 统计信息

No guard needed; this only samples kernel IO counters.

iostat -k 3      # print in KB, refresh every 3 seconds / 以 KB 打印结果,3 秒显示一次

Precondition: sysstat installed (see Global preconditions). Stop with Ctrl+C. Verify: per-device tps/kB_read/s/kB_wrtn/s columns appear and update.


3. Run a job in the background, surviving logout — 进程放入后台并脱离前台

Useful over SSH so a long job is not killed when the connection drops. Non-destructive to data, but disown removes the job from the shell's job table, so you can no longer fg/kill %n it from this shell afterwards.

./test           # 1. start the program / 运行程序
# 2. press Ctrl+Z to suspend it / 按 Ctrl+Z 使程序暂停
bg %1            # 3. resume it in the background (%1 = job number from `jobs`) / 将程序放入后台运行
disown -h %1     # 4. shield it from SIGHUP on logout / 退出登录时不再收到 SIGHUP

Read the full file on GitHub · 191 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 191 lines · 103 tokens per session scan B 51e0f4fde49a

Subscribe to this mod's changes

linux-ops-cheatsheet is a skill published in the GitHub repository Zandereins/schliff (16 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 2,111 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.