How to find hostname on mac searching

Top keyword related from Search Engine of how to find hostname on mac