Finely chop the onion and green onion.
Break the eggs into a bowl and beat them well.
Heat cooking oil in a pan and sauté the green onion to bring out its aroma.
Add the onion and stir-fry.
Add the rice and stir-fry evenly.
Pour in the eggs and quickly stir-fry over low heat.
Season with salt and pepper to taste.
Transfer the finished fried rice to a bowl.