Image: Simple Icons contributors / Simple Icons — CC0 1.0
macOS notes: shell, PATH, disks, Finder hidden files, SSH keys, and Yosemite USB install media.
macOS notes: shell, PATH, disks, Finder hidden files, SSH keys, and Yosemite USB install media.
Topics
Disk usage
Directory-wise size, human readable.
Export
export puts a variable into the environment. Append a directory to PATH
Find
find walks a path and matches names.
Hidden files
From Terminal, show or hide hidden files in Finder, then restart Finder.
Netcat
nc is netcat. Listen on localhost.
Open
/usr/bin/open opens files and applications.
osascript
$1 is the color, as a four-value tuple.
Paste newline unicode
Pasted text can carry a Unicode newline (\xe2\x80\xa8) instead of a real newline. Replace those bytes in permission.txt. -i.old writes in place and keeps a permission.txt.old backup.
PATH
Set PATH in ~/.bash_profile. Prepend an optional extra path.
Setup USB installation media
Build bootable OS X Yosemite USB install media.
SSH
From ~/.ssh, write the public key from the private key.


