Use mdfind for locate command in OS X even not in window system.