brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

tips

~/tips/terminal
All tips

116 tips Terminal

One command, setting or habit at a time about Terminal: what it does, the line to copy and a caveat or two.

Start here · Terminal🐳Guide: Updating Docker Containers via the Unraid Terminal9 steps · 3 min read · Unraid users who update by handStart the guide

Mac terminal 27

Developer setup 13

Files and Spotlight 10

Text tools 7

Time Machine 7

Windows 7

Display and control 6

Network and DNS 5

Recording and logging 5

Settings and services 4

Access and security 3

Keyboard and desktop 3

Screenshots and images 3

Automation 2

  • Shows a macOS notification from a script or after a long command.

    osascript -e 'display notification "Backup finished" with title "Terminal" sound name "Glass"'
  • Runs JavaScript instead of AppleScript to control Mac apps from Terminal.

    osascript -l JavaScript -e 'Application("Mail").inbox.messages.whose({subject: {_contains: "invoice"}}).subject()'

Clipboard 2

Disks and names 2

Shell basics 2

Config and keys 1

Files and media 1

Inspect and logs 1

  • Keeps only the JSON items that match a condition and prints one field.

    echo '[{"n":"a","up":true},{"n":"b","up":false}]' | jq -r '.[] | select(.up) | .n'

Python one-liners 1

Shortcuts 1

Slash commands 1

Standard library 1

System 1