Command Line Stuff I Use

Screenshot of command line stuff I use

Last updated: 11-Aug-2020

This is a blog post where I share various commands for use in the terminal. Mostly, I add new commands here when I find them and when someone shares something useful with me. This blog post helps me keep all these commands in a single place.


This command is useful when troubleshooting DNS issues. This was shared with me by Daniel Olson.

dig A +short
dig A +short
dig CNAME +short
dig CNAME +short

Find Nameserver Details

These short commands were shared with me by the coffee-loving Jan Dembowski.

dig ns
dig ns +trace

Get TXT Records for a Domain

The following command is a clean way to get the basics on TXT records, which is helpful when looking to verify authorization over a domain.

dig -t txt +short

Curl -I

I can’t recall the value of this but I used it once and it was pretty helpful. I think Daniel Olson shared this with me as well.

curl -I

Hide Desktop Icons

I found this wonderful technique in a blog post and copied it here for my own future reference.

Hiding the Icons

defaults write CreateDesktop false
killall Finder

Bringing the Icons Back

defaults write CreateDesktop true
killall Finder