The terminal command defaults write com.apple.finder ShowMountedServersOnDesktop true sets the Finder preference to show mounted servers on the desktop. This is equivalent to checking the box for “Connected Servers” in the Finder settings under the General tab. The other commands are either invalid or do not change the preference value.
defaults read com.apple.finder ShowMountedServersOnDesktop true reads the current value of the preference, but does not modify it.
defaults cat com.apple.finder ShowMountedServersOnDesktop true is not a valid command, as cat is not a valid subcommand for defaults.
defaults append ShowMountedServersOnDesktop com.apple.finder true appends the value true to the preference key ShowMountedServersOnDesktop, which is not a valid operation, as the preference value should be a boolean, not a list. References:
Apple Device Support Exam Prep Guide, page 11
Change Finder settings on Mac
How to show Hard Disk icon on Desktop via Terminal?
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit