惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
J
Java Code Geeks
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Jina AI
Jina AI
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
L
LangChain Blog
WordPress大学
WordPress大学
A
About on SuperTechFans
Martin Fowler
Martin Fowler
月光博客
月光博客
Y
Y Combinator Blog
U
Unit 42
D
Docker
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
My CLI Toolbox: 10 Tools I Use Every Day (2026)
Alex Chen · 2026-05-17 · via DEV Community

Alex Chen

My CLI Toolbox: 10 Tools I Use Every Day (2026)

These command-line tools save me hours every week. Here's what's in my toolbox and why.

Why CLI Tools Matter

GUI is great for discovery.
CLI is great for speed.

Once you know what you're doing, keyboard beats mouse every time.
These tools turn 10-minute GUI tasks into 30-second commands.

Enter fullscreen mode Exit fullscreen mode

The List

1. ripgrep (rg) — Blazing Fast Search

Replaces grep and find combined. Searches files instantly.

# Find all TODO comments in your project
rg "TODO|FIXME|HACK" --type-add 'code:*.{js,ts,py,go,rs}' -t code

# Case-insensitive search in specific files
rg "password" --type js -i

# With context lines
rg "function export" -C 2 ./src/

Enter fullscreen mode Exit fullscreen mode

Why it beats grep: Written in Rust, respects .gitignore, smart defaults.

Install: brew install ripgrep or apt install ripgrep

2. fd — Better find

# Find all JS files (ignores node_modules, .git automatically)
fd -e js

# Find files modified in last 7 days
fd -e js --changed-within 7days

# Execute on results
fd -e ts -x wc -l

Enter fullscreen mode Exit fullscreen mode

Why it beats find: Color output, regex support, ignores junk by default.

3. batcat with Superpowers

bat app.js          # Syntax highlighting + line numbers + git diff
bat -p app.js       # Plain mode (no headers/line numbers)
bat --list-languages  # See supported languages

Enter fullscreen mode Exit fullscreen mode

Why it beats cat: Syntax highlighting for 100+ languages, integrates with less, shows non-printable characters.

4. fzf — Fuzzy Finder for Everything

# Fuzzy file search
fzf

# Search git branches
git branch | fzf

# Search command history (GAME CHANGER)
history | fzf

# Kill processes interactively
ps aux | fzf | awk '{print $2}' | xargs kill

Enter fullscreen mode Exit fullscreen mode

My favorite combo: Ctrl+R replacement:

# Add to .bashrc/.zshrc
source <(fzf --zsh)  # or --bash

Enter fullscreen mode Exit fullscreen mode

5. jq — JSON Swiss Army Knife

# Pretty print
curl -s api.example.com/data | jq .

# Extract fields
cat package.json | jq '.dependencies | keys'

# Filter & transform
cat data.json | jq '.items[] | select(.price > 50) | {name, price}'

# Calculate
echo '[1,2,3,4,5]' | jq 'add'        # → 15
echo '[1,2,3,4,5]' | jq 'add / length' # → 3

Enter fullscreen mode Exit fullscreen mode

Essential for any API work.

6. htop / btop — Process Monitor

htop   # Classic, works everywhere
btop   # Newer, prettier, same info

Enter fullscreen mode Exit fullscreen mode

Shows CPU, memory, processes per core, tree view. Press F5 for tree mode, F6 to sort, F9 to kill.

7. tldr — Simplified Man Pages

tldr tar           # Practical examples, not reference manual
tldr curl          # Most common use cases only
tldr docker        # Actually useful commands

Enter fullscreen mode Exit fullscreen mode

Why it beats man: Shows examples first. No reading through 500 lines of flags you'll never use.

8. zoxide — Smarter cd

z src            # Jumps to ~/projects/my-app/src
z logs           # Jumps to /var/log/nginx
z dotfiles       # Jumps to ~/.dotfiles

Enter fullscreen mode Exit fullscreen mode

Learns from your cd history. Ranks by "frecenty" (frequency + recency).

9. delta — Better Git Diffs

# In .gitconfig
[core]
    pager = delta

[interactive]
    diffFilter = delta --color-only

[delta]
    navigate = true
    side-by-side = true
    line-numbers = true
    syntax-theme = Dracula

Enter fullscreen mode Exit fullscreen mode

Features: syntax highlighting within diffs, side-by-side view, improved formatting.

10. tmux — Terminal Multiplexer

# Start a session
tmux new -s work

# Split panes
Ctrl-b %     # Horizontal split
Ctrl-b "     # Vertical split
Ctrl-b o     # Switch between panes

# Detach and reattach (survives SSH disconnect!)
tmux detach  # or Ctrl-b d
tmux attach -t work

# Multiple windows
tmux new-window -n server
tmux select-window -t server

Enter fullscreen mode Exit fullscreen mode

Why it matters: Your terminal sessions survive network drops. Run long-running tasks on remote servers without worry.

Bonus: My Shell Setup

# ~/.bashrc essentials

# History with timestamps
export HISTTIMEFORMAT='%F %T '
export HISTSIZE=10000
shopt -s histappend

# Useful aliases
alias ll='ls -alh'
alias gs='git status'
alias gp='git push'
alias ..='cd ..'
alias ...='cd ../..'

# Quick functions
mkcd() { mkdir -p "$1" && cd "$1"; }
extract() {
  if [ -f "$1" ]; then
    case "$1" in
      *.tar.bz2) tar xjf "$1" ;;
      *.tar.gz)  tar xzf "$1" ;;
      *.bz2)     bunzip2 "$1" ;;
      *.rar)     unrar x "$1" ;;
      *.gz)      gunzip "$1" ;;
      *.tar)     tar xf "$1" ;;
      *.tbz2)    tar xjf "$1" ;;
      *.tgz)     tar xzf "$1" ;;
      *.zip)     unzip "$1" ;;
      *.Z)       uncompress "$1" ;;
      *)         echo "'$1' cannot be extracted via extract()" ;;
    esac
  fi
}

Enter fullscreen mode Exit fullscreen mode

How These Tools Work Together

Real workflow example:

1. fzf → fuzzy-find the project directory
2. zoxide → jump there fast
3. fd → find relevant source files
4. rg → search for the function I need to change
5. bat → read the current code with highlighting
6. jq → parse API response while debugging
7. tmux → keep everything running in organized panes
8. htop → check if my changes caused memory issues

Result: Never leave the terminal.

Enter fullscreen mode Exit fullscreen mode

Installation One-Liner

# Ubuntu/Debian
sudo apt install ripgrep fd-find bat fzf jq htop tldr tmux

# Some tools need different names on Debian
mkdir -p ~/.local/bin
ln -sf /usr/bin/fdfind ~/.local/bin/fd
ln -sf /usr/bin/batcat ~/.local/bin/bat

# macOS
brew install ripgrep fd bat fzf jq htop btop tldr tmux zoxide delta

Enter fullscreen mode Exit fullscreen mode


What CLI tools can't you live without?

Follow @armorbreak for more developer tooling guides.