`osqueryi` gives you an interactive shell to query...
# general
z
osqueryi
gives you an interactive shell to query that data, and
osqueryd
gives you a daemon that can schedule queries and log results.