bash-linux

Provide tested Bash/Linux command patterns for chaining, searching, and automation.

Updated May 19, 2026
One-click install
npx skills add https://github.com/TimeKast/AgendaInteligente --skill bash-linux-timekast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-linux
Source: https://github.com/TimeKast/AgendaInteligente/tree/main/.agent/skills/bash-linux
Command: npx skills add https://github.com/TimeKast/AgendaInteligente --skill bash-linux-timekast

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of getting reliable, repeatable outcomes when using the Bash terminal on Linux or macOS, especially when chaining commands, managing processes, and handling errors.

Core Features & Use Cases

  • Operator syntax for safe command flow: Use ;, &&, ||, and pipes to control execution order and propagate success/failure correctly (e.g., install dependencies and only start the app if install succeeds).
  • Practical filesystem and process tooling: Apply essential commands for listing, searching, reading, and log following, plus process and port diagnostics to debug development environments.
  • Shell scripting fundamentals with robust error handling: Use patterns like set -euo pipefail, quoting, function-based logging, and trap-based cleanup to reduce brittle scripts.

Quick Start

Ask the AI to generate a Bash command sequence that finds running Node processes on port 3000, prints the relevant process details, and kills them safely using PID lookup.

Frequently Asked Questions about bash-linux

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

FAQPage Schema
How do I write a bash script with error handling to prevent silent failures?

Bash script error handling uses `set -euo pipefail` to halt execution on errors, undefined variables, and pipe failures. Combining this with `trap cleanup` ensures deterministic execution by running cleanup functions when scripts exit unexpectedly.

What is the safest way to chain shell commands using bash operators?

Safe command chaining in bash uses `&&` to execute the next command only on success and `||` for failure fallbacks. This operator syntax controls execution flow and propagates success or failure correctly across piped commands.

How do I find and kill a running process occupying a specific port in Linux?

Finding and killing a process by port in Linux requires inspecting active ports and retrieving the process ID. You can then safely kill the process using PID lookup commands to free the occupied port for development environments.

Does bash shell scripting work the same way on macOS and Linux for filesystem inspection?

Bash shell scripting for filesystem inspection works on both macOS and Linux. Tested Bash/Linux command patterns apply to both operating systems for tasks like listing, searching, reading files, and environment variable handling.

Why does my bash script break when variables contain spaces?

Bash scripts break with spaces due to unquoted variable expansion. Safe variable quoting wraps variables in double quotes to prevent word splitting and glob expansion, ensuring deterministic execution across different filesystem paths.