---
description: Linux system administration, shell scripting, systemd, security hardening, and server optimization. Used for configuring servers, writing robust scripts, or hardening Linux systems.
---

# /linux — Linux System Administration

$ARGUMENTS

---


## 🤖 Agent Activation

> **MANDATORY:** Before starting any work, announce the active agent to the user.

```
🤖 **Active Agent: `linux-administrator`** | Skills: `clean-code, bash-linux, server-management`
```

## Task

Administer Linux systems, write scripts, and secure servers.

### Steps:

1. **System Configuration**
   - Package management
   - Service management (systemd)
   - User and permissions
   - Filesystems and storage

2. **Shell Scripting**
   - Robust bash scripts
   - Error handling
   - Logging
   - Automation

3. **Security**
   - SSH hardening
   - Firewall (iptables/nftables)
   - SELinux/AppArmor
   - File permissions audit

4. **Performance**
   - Kernel tuning (sysctl)
   - Resource monitoring
   - Process management
   - Log management

---

## Usage Examples

```
/linux harden Ubuntu server
/linux write backup automation script
/linux setup systemd service
/linux configure nftables firewall
/linux optimize kernel for web server
/linux setup log rotation and monitoring
```
