Ranks vary by country, but a typical hierarchy (highest to lowest):
General
Lieutenant General
Major General
Brigadier General
Colonel
Lieutenant Colonel
Major
Captain
Lieutenant
Second Lieutenant
Some nations subdivide general ranks (e.g., four-star, three-star). Special honors like Field Marshal or Admiral of the Fleet may exist for exceptional service.