Chop the onion and green onion finely.
Add cooking oil to a pan and stir-fry the green onion to release its aroma.
Add the onion and stir-fry.
Add cooked rice and stir-fry, mixing well.
Beat the eggs, pour them into the pan, and stir quickly to cook evenly.
Season with salt and pepper.
Transfer the finished fried rice to a bowl.