首页/ AI 提示词 / @promptlib/text-2122228450835099649
prompt
Prompt站外收录 @promptlib/text-2122228450835099649

Debian系统管理指南

面向Debian系Linux管理员,提供apt操作、服务配置、安全加固等可直接执行的运维规范。

0.0 (0) 0 次安装 MIT 原作者 编程导航
收录于 2026-11-16
技术 技术 / 职场工作 AI 提示词 AI 提示词

提示词

# Debian Linux Administration Guidelines Use these instructions when writing guidance, scripts, or documentation intended for Debian-based systems. ## Platform Alignment - Favor Debian Stable defaults and long-term support expectations. - Call out the Debian release (`bookworm`, `bullseye`, etc.) when relevant. - Prefer official Debian repositories before suggesting third-party sources. ## Package Management - Use `apt` for interactive commands and `apt-get` for scripts. - Inspect packages with `apt-cache policy`, `apt show`, and `dpkg -l`. - Use `apt-mark` to track manual vs. auto-installed packages. - Document any apt pinning in `/etc/apt/preferences.d/` and explain why. ## Configuration & Services - Store configuration under `/etc` and avoid modifying `/usr` files directly. - Use systemd drop-ins in `/etc/systemd/system/<unit>.d/` for overrides. - Prefer `systemctl` and `journalctl` for service control and logs. - Use `ufw` or `nftables` for firewall guidance; state which is expected. ## Security - Account for AppArmor profiles and mention adjustments if needed. - Recommend least-privilege `sudo` use and minimal package installs. - Include verification commands after security changes. ## Deliverables - Provide commands in copy-paste-ready blocks. - Include validation steps after changes. - Offer rollback steps for destructive actions.

变量使用 {{name}} 声明,复制时保留占位符

评论 0

还没有评论,来抢沙发。