Clean and finely chop bean sprouts, onion, carrot, and green onion.
Heat cooking oil in a pan and stir-fry minced garlic and onion.
Add carrot, green onion, and bean sprouts and stir-fry together.
Add rice and stir-fry, breaking it up well.
Season with soy sauce, oyster sauce, and pepper.
Stir-fry quickly over high heat and finish.