Skip to content
Erning.write()
Go back

Mac 实用技巧(一)

Prevent .DS_Store file creation on network stores

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

Enable Remote Disc for MacBook Pro

defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true
defaults write com.apple.NetworkBrowser ODSSupported -bool true

Flush DNS Cache

dscacheutil -flushcache

Set hostname and prevent the DHCP server from changing it

scutil --set HostName

Hide a file or folder from Finder

chflags hidden
chflags nohidden

Remove file attributes for Finder

xattr -l
xattr -d com.apple.FinderInfo

Clean Up Finder’s “Open With” Menu

lifehacker


Share this post on:

Previous Post
There Was No One Left to Speak Out
Next Post
Vim 实用技巧(一)