Top Terminal Commands and Tricks for macOS Users

Humpy Adepu

brew update – Keeps Homebrew packages fresh, ensuring software versions stay current without manual update checks.

sudo !! – Repeats the last command with admin rights, saving time when permissions were forgotten.

pbcopy – Instantly copies terminal output to clipboard, useful for sharing logs or command results effortlessly.

open . – Opens the current folder in Finder, bridging terminal and GUI workflow smoothly together.

history | grep – Quickly searches your command history, helping recall forgotten terminal commands without scrolling endlessly.

df -h – Displays disk usage in readable format, helping monitor available storage before performance issues start.

top – Shows active processes and resources, helping diagnose slowdowns or app misbehavior instantly and efficiently.

say – Converts text into spoken audio, useful for fun notifications or accessibility enhancements during multitasking.

rm -rf – Permanently deletes files or folders recursively, powerful but dangerous if used without caution.

Read More Stories
Join our WhatsApp Channel to get the latest news, exclusives and videos on WhatsApp