technology Quick Take

5 Terminal Tricks I Use Every Day

Jun 04, 2026  ·  1 min read

  1. !! repeats the last command — forgot sudo? Just run sudo !!. Saves retyping long commands constantly.

    apt install something   # permission denied
    sudo !!                 # runs: sudo apt install something
    
  2. Ctrl+R searches your history — start typing any part of a previous command and it reverse-searches. Hit Ctrl+R again to cycle through matches. Far faster than arrow keys.

  3. cd - goes back to where you just were — like the back button for your filesystem. Toggle between two directories constantly without typing paths.

  4. Brace expansion saves repetitive typing — copy, rename, or operate on multiple files in one shot.

    cp config.json{,.bak}          # copies to config.json.bak
    mkdir -p project/{src,tests,docs}  # creates all three dirs
    
  5. pgrep and pkill by name, not PID — instead of ps aux | grep thing | awk '{print $2}' | xargs kill, just:

    pkill -f "hugo server"   # kills matching processes by name
    pgrep -a node            # shows PIDs and full command for node processes
    

Top Article

blog-post
productivity

AI Writing Assistants

So what even is an AI writing assistant? Think of it like a very well-read friend who has absorbed an enormous amount of …

Jun 01, 2026 · 2 Min read

productivity

AI Writing Assistants — IRL

My actual daily workflow I use Claude for almost every post I write on this site. Not to write the posts — to work …

Jun 01, 2026 · 2 Min read