Below are all the moves that Onix can learn in Generation 1, which consists of:

Pokémon Red

Pokémon Blue

Pokémon Yellow

Note: The move categories shown here are based on the move's type, as was the mechanic in Generations 1-3. The moves' detail pages may show a different category for Generation 4+.