Skip to content
vudovn avatar

Bash Linux

Bash command reference covering chaining, file, process, text, network, and scripting patterns for Linux and macOS.

CCM score
45 of 100
skills.sh installs
226
GitHub stars
8.2K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers operator chaining, file and process management, text processing, environment variables, and networking commands
  • Includes a script template with set -euo pipefail, logging helpers, and a main entry point, plus common patterns for loops and file reads
  • Provides a PowerShell-to-Bash comparison table and error handling guidance covering trap cleanup and set options
  • Designed for work on macOS or Linux systems and writing bash scripts, not for Windows or PowerShell environments

Install

$ npx -y skills add vudovn/ag-kit --skill bash-linux -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Bash Linux Patterns

Essential patterns for Bash on Linux/macOS.


1. Operator Syntax

Chaining Commands

OperatorMeaningExample
;Run sequentiallycmd1; cmd2
&&Run if previous succeedednpm install && npm run dev
||Run if previous failednpm test || echo "Tests failed"
|Pipe outputls | grep ".js"

2. File Operations

Essential Commands

TaskCommand
List allls -la
Find filesfind . -name "*.js" -type f
File contentcat file.txt
First N lineshead -n 20 file.txt
Last N linestail -n 20 file.txt
Follow logtail -f log.txt
Search in filesgrep -r "pattern" --include="*.js"
File sizedu -sh *
Disk usagedf -h

3. Process Management

TaskCommand
List processesps aux
Find by nameps aux | grep node
Kill by PIDkill -9 <PID>
Find port userlsof -i :3000
Kill portkill -9 $(lsof -t -i :3000)
Backgroundnpm run dev &
Jobsjobs -l
Bring to frontfg %1

Details

Repository
github.com/vudovn/ag-kit
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the bash-linux skill cover?

The bash-linux skill gives the agent Bash and Linux terminal patterns for macOS or Linux systems. It covers operator chaining, file operations, process management, text processing, environment variables, network commands and a script template.

How do I install the bash-linux skill?

Run npx -y skills add vudovn/ag-kit --skill bash-linux -y in a project. After that the agent can use the Bash and Linux patterns when writing scripts or running terminal commands.

When should I use the bash-linux skill instead of a PowerShell approach?

Use it when working on macOS or Linux systems, writing bash scripts, or using terminal commands. The skill says it is not meant for Windows or PowerShell environments and includes a table comparing PowerShell and Bash commands.

Which tools does the bash-linux skill allow the agent to use?

The skill declares Read, Write, Edit, Glob, Grep and Bash as its allowed tools. It needs no separate account or API key according to its SKILL.md.

Where does the bash-linux skill sit in the CLI and Terminal category?

It is listed in the CLI and Terminal category on Claude Marketplaces. It focuses on error handling, piping and safe scripting patterns such as set -euo pipefail and trap-based cleanup.

More from vudovn/ag-kit

All 30

Similar to Bash Linux

More CLI & Terminal