bash-linux

Execute Bash command chaining, file inspection, and process management on Linux and macOS.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/capaas2/Site-teste --skill bash-linux-capaas2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-linux
Source: https://github.com/capaas2/Site-teste/tree/main/.agent/skills/bash-linux
Command: npx skills add https://github.com/capaas2/Site-teste --skill bash-linux-capaas2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you work efficiently in Bash on Linux and macOS by giving you reliable patterns for chaining commands, handling errors, managing processes, and scripting common terminal tasks.

Core Features & Use Cases

  • Command Chaining and Piping: Combine commands with sequential execution, conditional fallbacks, and pipelines for compact terminal workflows.
  • File, Text, and Process Operations: Quickly inspect files, search content, transform text, and manage running processes or open ports.
  • Safe Scripting Patterns: Use defensive shell settings, cleanup traps, and reusable script structure to write more robust Bash scripts.
  • Use Case: You need to debug a local Node app, locate the process holding port 3000, and safely stop it before restarting development.

Quick Start

Ask for a Bash/Linux command pattern to find a process using port 3000 and stop it safely.

Frequently Asked Questions about bash-linux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find and stop a process using a specific port in Bash?

Find and stop a process using a specific port in Bash by combining lsof or ps with grep to locate the PID, then kill it safely. This Skill provides reliable command chaining patterns for inspecting processes and managing open ports deterministically.

What's the best way to chain commands with conditional fallbacks in shell scripting?

The best way to chain commands in shell scripting is using sequential execution operators and conditional fallbacks. This Skill provides compact terminal workflows that combine commands with pipelines for reliable command chaining and error handling.

How do I search and transform text in files using grep, sed, and awk?

Search and transform text in files using grep to locate content, sed for text transformation, and awk for pattern processing. This Skill supplies standard Unix tooling patterns for file inspection, content searching, and text processing operations.

Can I use these Bash scripting patterns on macOS or is it Linux only?

You can use these Bash scripting patterns on both macOS and Linux. The Skill applies to macOS and Linux development workflows equally, requiring only standard Unix tooling like grep, sed, awk, find, ps, lsof, curl, and bash to execute terminal operations.

How do I write safe Bash scripts with cleanup traps and defensive settings?

Write safe Bash scripts with cleanup traps and defensive settings by using defensive shell options and reusable script structures. This Skill delivers safe scripting patterns including cleanup traps to help you write more robust Bash scripts.

Why does my command chaining fail when a previous command returns an error?

Command chaining fails when a previous command returns an error if you are not using conditional fallbacks. This Skill helps you apply sequential execution and conditional fallback operators to handle errors properly and ensure compact terminal workflows execute deterministically.