A solid reference card for bash essentials that covers what you actually need when working in the terminal. You get operator chaining, file operations, process management, and text processing tools in quick-reference tables. The script template with error handling flags (set -euo pipefail) is genuinely useful, and the PowerShell comparison table helps if you're coming from Windows. It's not trying to teach bash from scratch, just giving you the commands and patterns you'll reach for when debugging a process, grepping logs, or writing a deployment script. Keep it open when you need syntax you use monthly but can never quite remember.

skills.sh installs
405
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill bash-linux --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Debugging, CLI & Terminal
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

More Debugging
1fredm00n avatarframer-code-components-overridesfredm00n/framerlabsCreate Framer Code Components and Code Overrides. Use when building custom React components for Framer, writing Code Overrides (HOCs) to modify canvas elements,404skills.sh installs
2syncfusion avatarsyncfusion-blazor-licensesyncfusion/blazor-ui-components-skillsGenerate, register, secure, validate, and troubleshoot Syncfusion Blazor license keys across all Blazor project types403skills.sh installs
3microsoftdocs avatarazure-functionsmicrosoftdocs/agent-skillsExpert knowledge for Azure Functions development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, se398skills.sh installs
4secondsky avatarmulti-ai-consultantsecondsky/claude-skillsConsult external AIs (Gemini 2.5 Pro, OpenAI Codex, Claude) for second opinions. Use for debugging failures, architectural decisions, security validation, or ne397skills.sh installs
5davila7 avatarrailway-deploymentdavila7/claude-code-templatesManage Railway deployments - view logs, redeploy, restart, or remove deployments. Use for deployment lifecycle (remove, stop, redeploy, restart), deployment vis394skills.sh installs
6pedronauck avatarnext-best-practicespedronauck/skillsNext.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundlin394skills.sh installs