Help to make a histogram

Hello everyone, for several days I have been trying to run the examples that come in the O2 documentation but the only thing I get is that I get a terminal that I do not understand how to manipulate. The truth is that I am interested in learning how to make histograms, can you recommend me how to start making them, or in any case provide me with an example.