Rafian.com Site

At , I believe in working smarter, not harder. Here are 5 terminal tricks that actually save me 2+ hours every single week. 1. The “Fuzzy Finder” for Instant File Navigation Stop using cd ../../projects/client/v2/src/components . Instead, install fzf (Fuzzy Finder).

April 14, 2026

# On macOS brew install fzf sudo apt install fzf rafian.com

function killport() xargs kill -9

brew install trash Now alias rm to trash in your shell config: At , I believe in working smarter, not harder

Now, press Ctrl+T anywhere in your terminal. Start typing part of a filename. Instantly jump there. I save ~15 minutes a week just by not typing long paths. How often do you run ps aux | grep node then kill -9 1234 ? Too often.

alias rm='trash' Deleted files go to your system Trash. You can restore them. This has saved my career at least twice. Pressing the up arrow 20 times is for beginners. Instead, type a partial command and press Ctrl+R . The “Fuzzy Finder” for Instant File Navigation Stop

Rafian If you spend more than 10 minutes a day in a terminal, you are likely repeating yourself. You are typing the same long commands, waiting for the same slow processes, or clicking through five folders just to find one log file.