Skip to content

Bash and Linux terminal reference covering operators, file, process, text, and network commands with script safety patterns.

CCM score
58 of 100
skills.sh installs
406
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers operator chaining, file operations, process management, text processing, environment variables, and networking
  • Includes a script template using set -euo pipefail, a trap cleanup pattern, and reusable idioms like command -v and while read loops
  • Provides a PowerShell-to-Bash comparison table for translating common tasks between shells
  • Designed for working on macOS or Linux systems where shell commands are the primary interface

Install

$ npx -y skills add davila7/claude-code-templates --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/davila7/claude-code-templates
Category
CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the bash-linux skill do?

The bash-linux skill covers Bash terminal patterns for Linux and macOS systems, including operator syntax, piping, error handling and scripting. It gives the agent reference tables for file operations, process management, text processing, environment variables and network commands. The bash-linux skill also includes a script template with set -euo pipefail and a trap for cleanup.

How do I install the bash-linux skill?

Run npx -y skills add davila7/claude-code-templates --skill bash-linux -y in your project to install it. After that, the bash-linux skill lets the agent write and check shell commands and scripts on macOS or Linux machines.

Which skills lead the CLI and Terminal category where bash-linux is listed?

The bash-linux skill sits in the CLI and Terminal category on Claude Marketplaces, next to herdr, gws-shared, opentui, cf-cli and pnpm. Its SKILL.md is aimed at everyday shell work, with the bash-linux skill's tables showing Bash equivalents of PowerShell commands.

Does the bash-linux skill need any tools or accounts before I use it?

The bash-linux skill lists Read, Write, Edit, Glob, Grep and Bash as its allowed tools, so it runs inside an agent that has those tools. The bash-linux skill needs no API key or account in its SKILL.md.

More from davila7/claude-code-templates

All 398

Similar to Bash Linux

More CLI & Terminal