I'm putting together a space opera setting, and while that does leave me free to make up my own version of a lot of things
The setting is a large multi system realm with a unified military. One of the protagonists is the general at the top. The story starts with a coup and the general hurriedly gathers his forces on board a warship and speeds off to join up with other corps to organize a resistance. I'm wondering what rank his immediate staff would be, who he would interact directly with to issue orders, who would have the job of delivering status updates to him, and so on.
Thanks.
You're getting a lot of mundane technical details about ranks and billets, which you'll need if you want to write detailed military SF. If you just want to use plausible names, though, and you are using Army/Air Force rather than naval ranks (implied by "general" - and of course, the distinction between services is another thing that might not exist in your space opera setting) -
Generals (various flavors, usually denoted by stars) are strategic-level commanders. They command armies. Naval equivalent is Admiral, who commands fleets.
Colonels are senior officers, often in charge of fairly major projects in their own right, and assistants to generals. A colonel is a senior military veteran of some weight, but transcending the barrier to flag officer (general) requires not just military but political acumen, as generals are very political positions. They command Divisions or Brigades. Naval equivalent is Captain, who commands flagships, aircraft carriers and the like.
Lieutenant Colonels are career officers who are either in line to become colonels, or have stalled (Lt. Colonel is a "terminal rank" for the almost-but-not-quite good enough). They'll be assistants to colonels (or lesser assistants to generals) and can command Battalions or Brigades. Naval equivalent is Commander, who commands major warships.
Majors are officers with some experience, usually still early or mid-career. They are just starting to be given major responsibilities, and can command Companies or Battalions. Naval equivalent is Lieutenant Commander.
Captains (don't be confused here - an Army Captain is an O-3, while a Naval Captain is an O-6, the equivalent of an Army Colonel) are no longer "junior" officers, but still early career. They command Companies, and are usually being given commands to give them some experience to see how they do. Naval equivalent is Lieutenant, who will have some major area of responsibility on board a warship, or be in command of a small ship or boat.
1st Lieutenants (again, don't be confused, because a Naval Lieutenant is an O-3, or equivalent of an Army Captain) is still a junior officer, but no longer fresh out of the academy. He might be allowed to fetch coffee for Colonels and Generals, and given some minor responsibilities. They can command a Company or a squad. Naval equivalent is an Ensign.
2nd Lieutenants ("butterbars") are completely useless, know nothing, and will be thoroughly abused by NCOs who call them "sir" while ignoring them when not trying to teach them something. If they aren't incompetent, they'll be given something to do and eventually promoted. Naval equivalent is Ensign, j.g. (junior grade).