- Home
- Skills
- Vudovn
- Antigravity Kit
- Bash Linux
bash-linux_skill
- TypeScript
5.7k
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill vudovn/antigravity-kit --skill bash-linux- SKILL.md4.1 KB
Overview
This skill collects practical Bash and Linux terminal patterns for daily macOS/Linux work. It focuses on command chaining, file and process management, text processing, environment variables, networking, scripting templates, and robust error handling. Use it to speed up repetitive shell tasks and write safer scripts.
How this skill works
The skill summarizes common commands, operators, and idioms so you can copy or adapt them directly in a terminal or script. It explains what to use for listing files, searching text, managing processes, piping data, and handling errors. It also includes a minimal script template with safe options (set -euo pipefail) and useful helper functions for logging and cleanup.
When to use it
- Running multi-step commands reliably (use && and ||)
- Searching and transforming text across files (grep, sed, awk)
- Writing portable shell scripts with error handling and traps
- Managing processes, ports, and background jobs on a developer machine
- Debugging and inspecting system state (disk usage, network, environment vars)
Best practices
- Quote variables to avoid word splitting and globbing ("$var")
- Use set -euo pipefail in scripts to fail fast and avoid silent errors
- Prefer command -v to check for availability before use
- Use traps for cleanup and set -x only while debugging
- Chain with && for dependent steps and || for fallback actions
Example use cases
- Install dependencies and start a dev server: npm install && npm run dev
- Find and replace across files: grep -rl "TODO" src/ | xargs sed -i 's/old/new/g'
- Free a port used by a process: kill -9 $(lsof -t -i :3000)
- Create a robust script: include set -euo pipefail, log helpers, and a trap for cleanup
- Stream logs and search in real time: tail -f log.txt | grep -i ERROR
FAQ
Use sed carefully: Linux sed supports -i without extension, macOS requires an argument (e.g., -i '' ). For portability, prefer a temporary file pattern: sed 's/a/b/g' file > file.tmp && mv file.tmp file.
When should I use && vs ; in command chains?
Use && when the next command should run only on success of the previous command. Use ; when commands are independent and should run regardless of prior exit status.