Terminal utils #
Mount (linux distro) ISO #
First we attach ISO to system:
hdiutil attach -nomount /path/to/ISO
returns something like this:
/dev/disk2 Apple_partition_scheme
/dev/disk2s1 Apple_partition_map
/dev/disk2s2 Apple_HFS
then mount need device to mountpoint:
mount -t cd9660 /dev/disk2 /path/to/mount
And after usage:
umount /dev/disk2
hdiutil detach disk2
Show CPU info #
# Number of CPU cores
sysctl -n hw.ncpu
# CPU model
sysctl -n machdep.cpu.brand_string
Flush DNS cache #
# Big Sur
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder