Skip to content
Back to skills

Htop

ASecurity

Monitor system resources with htop and related tools. Use when a user asks to check CPU/memory usage, find resource-hungry processes, monitor server performance, or diagnose system bottlenecks.

  • 142 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 29, 2026
devopsgobashdevopsperformance

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add TerminalSkills/skills --skill htop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Htop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Htop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/terminalskills-htop/badge)](https://www.skillsdirectory.com/skills/terminalskills-htop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: htop
description: >-
  Monitor system resources with htop and related tools. Use when a user asks
  to check CPU/memory usage, find resource-hungry processes, monitor server
  performance, or diagnose system bottlenecks.
license: Apache-2.0
compatibility: 'Linux, macOS'
metadata:
  author: terminal-skills
  version: 1.0.0
  category: devops
  tags:
    - htop
    - monitoring
    - processes
    - performance
    - linux
---

# htop / System Monitoring

## Overview

htop is an interactive process viewer for Linux. Combined with other CLI tools (top, vmstat, iostat, iotop, nethogs), it provides comprehensive real-time system monitoring without installing external agents.

## Instructions

### Step 1: Process Monitoring

```bash
htop                      # interactive process viewer
htop -u deploy            # filter by user
htop -p 1234,5678         # monitor specific PIDs

# Inside htop:
# F5 = tree view (parent/child processes)
# F6 = sort by column
# F9 = kill process
# / = search
# Space = tag process
```

### Step 2: Resource Analysis

```bash
# CPU and memory overview
free -h                    # memory usage (human-readable)
uptime                     # load average (1, 5, 15 min)
nproc                      # number of CPU cores

# Disk I/O
iostat -x 1                # disk I/O stats, 1 second interval
iotop                      # top for disk I/O (shows which process reads/writes)

# Network
nethogs                    # bandwidth per process
ss -tulnp                  # listening ports with process names
iftop                      # bandwidth per connection
```

### Step 3: Quick Diagnostics Script

```bash
#!/bin/bash
# scripts/server-status.sh — Quick health check
echo "=== CPU Load ==="
uptime

echo -e "\n=== Memory ==="
free -h

echo -e "\n=== Disk ==="
df -h /

echo -e "\n=== Top 5 CPU Processes ==="
ps aux --sort=-%cpu | head -6

echo -e "\n=== Top 5 Memory Processes ==="
ps aux --sort=-%mem | head -6

echo -e "\n=== Listening Ports ==="
ss -tulnp | grep LISTEN
```

## Guidelines

- Load average > number of CPU cores = system is overloaded.
- `free -h`: look at "available" column, not "free" (Linux uses free RAM for cache).
- Use `dstat` for combined CPU/disk/net stats in one view.
- For historical monitoring, pair with Prometheus + Grafana or Netdata.

Files in this skill

  • SKILL.md2.3 KB
  • _scores.json1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.