sudo diskutil repairPermissions /diskutil listsudo fs_usageThe disk is backed by physical RAM and will be several times faster than an SSD. The contents of the disk cannot be recovered after it has been ejected. The example below is for a 500 MiB RAM disk, adjust as needed.
let DISKSIZE=500*2048 && \
diskutil erasevolume HFS+ "RAM Disk" `hdiutil attach -nomount ram://$DISKSIZE`let "DISKSIZE = 500*2048" && \
diskutil erasevolume HFS+ "RAM Disk" `hdiutil attach -nomount ram://$DISKSIZE`hdiutil attach /path/to/diskimage.dmghdiutil detach /dev/disk2s1sudo asr -restore -noverify -source /path/to/diskimage.dmg -target /Volumes/VolumeToRestoreTodefaults write com.apple.finder ShowMountedServersOnDesktop -bool true && \
killall Finderdefaults write com.apple.finder ShowMountedServersOnDesktop -bool false && \
killall Findersudo chmod -RN /path/to/folderdefaults write -g AppleShowAllExtensions -bool trueThis is equivalent to Finder "Locked" status.
sudo chflags -R nouchg /path/to/file/or/foldersudo chflags -R uchg /path/to/file/or/folderShow Hidden Files
defaults write com.apple.finder AppleShowAllFiles truedefaults write com.apple.finder AppleShowAllFiles falseHidden (Default)
chflags hidden ~/Librarychflags nohidden ~/Librarydefaults write com.apple.finder CreateDesktop -bool false && \
killall Finderdefaults write com.apple.finder CreateDesktop -bool true && \
killall Finderdefaults write com.apple.finder FXDefaultSearchScope -string "SCcf"defaults write com.apple.finder NewWindowTarget -string "PfLo" && \
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"afconvert input.mp3 ringtone.m4r -f m4afsay -v Alex -f file.txt -o "output.m4a"say 'hello'
say -f mynovel.txt -o myaudiobook.aiffsudo sysdiagnose -f ~/Desktop/sudo purgels ~ | pbcopymdfind -onlyin ~/Documents essayscreencapture -C -M image.png
screencapture -c -W
screencapture -T 10 -P image.png
screencapture -s -t pdf image.pdf