Sample Header Ad - 728x90

What is 'currentHost' for, in defaults?

4 votes
2 answers
1108 views
There are many webpages given over to listing defaults commands in order to configure various parts of the OS. Some of them include the flag -currentHost. The man page for the defaults command documents the option -currentHost, as *"restricting preferences operations to the host that the user is currently logged in on."* Similarly, the -host flag allows a hostname to be specified for the preference. What is the purpose of explicitly setting these flags? Under what circumstances would a preference affect some other host? (Or indeed, when would a user be logged in on a different host?)
Asked by benwiggy (39347 rep)
Mar 10, 2019, 06:18 PM
Last activity: Mar 12, 2023, 07:50 AM