Wash the shrimp thoroughly, peel them, and slice the garlic thinly.
Finely chop the onion and green onion.
Heat cooking oil in a pan and sauté the garlic until golden brown.
When the garlic becomes fragrant, add the shrimp and cook thoroughly.
Add the chopped onion and green onion, and stir-fry together.
Add the cooked rice and stir-fry, mixing well with the other ingredients.
Season with soy sauce, salt, and pepper, and combine evenly.
Transfer the finished fried rice to a bowl and serve.