bash-linux

Write reliable Bash commands and reusable scripts for Linux and macOS.

3|2|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/grasberg/sofia --skill bash-linux-grasberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-linux
Source: https://github.com/grasberg/sofia/tree/main/cmd/sofia/internal/onboard/antigravity-kit/.agent/skills/bash-linux
Command: npx skills add https://github.com/grasberg/sofia --skill bash-linux-grasberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bash and Linux users often struggle with composing reliable commands, chaining operations safely, and writing reusable shell scripts. This skill provides a concise guide to essential patterns, common tasks, and robust scripting practices to improve productivity.

Core Features & Use Cases

  • Operator syntax: chaining commands with ;, &&, ||, and | for robust workflows.
  • File operations and text processing: efficient file listing, searching, and parsing.
  • Process management and environment handling: managing processes, ports, and env vars.
  • Script template and best practices: safe scripting patterns, error handling, and portable code.
  • Practical use cases: automating backups, log parsing, and quick reproducible tasks.

Quick Start

Write a Bash one-liner that lists all .log files, filters for errors, and prints a summary.

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 to safely automate file management tasks?

To safely automate file management tasks with a Bash script, use a robust script template featuring error handling, operator syntax like && and ||, and portable code practices. This ensures reliable command chaining and prevents silent failures.

What is the best way to parse log files and filter errors from the command line?

The best way to parse log files and filter errors from the command line is using Bash text processing patterns. By chaining commands with pipes (|), you can efficiently list .log files, search for specific error strings, and print a concise summary.

How does command chaining with operators like && and || work in Linux shells?

Command chaining in Linux shells works by using operators like && to execute the next command only if the previous one succeeds, and || to execute it only if the previous one fails. This creates robust workflows and safe scripting patterns.

Can I use these Bash scripting patterns for process management on macOS?

Yes, you can use these Bash scripting patterns for process management on macOS. The patterns apply to both macOS and Linux environments, allowing you to manage processes, handle environment variables, and check ports reliably across Unix-based systems.

Why does my shell script fail silently without throwing an error?

Your shell script fails silently when it lacks proper error handling patterns. By implementing safe scripting practices like checking exit statuses and using the || operator to catch failures, you can prevent silent errors and ensure robust command execution.