Finely chop the green onion and onion.
Beat the eggs and set aside.
Heat cooking oil in a pan and sauté the green onion to release its aroma.
Add the chopped onion and stir-fry.
Add the rice and stir-fry, mixing evenly.
Pour in the beaten eggs and quickly mix while stir-frying.
Season with salt and pepper.
Serve in a bowl to finish.