I used this command to disable screen sharing:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
But when I try to confirm if it's disabled using the following, I get "enabled"
[[ -f /etc/com.apple.screensharing.agent.launchd ]] && echo 'enabled' || echo 'disabled'
Am I misunderstanding something? I would like to turn screen sharing off, and confirm that it is off.