Wash the bean sprouts thoroughly and remove excess water.
Thinly slice onion and carrot.
Heat cooking oil in a pan and sauté minced garlic.
Add onion and carrot and stir-fry.
Add rice and break it up as you stir-fry.
Add bean sprouts and quickly stir-fry over high heat.
Season with soy sauce, oyster sauce, and pepper.
Garnish with chopped green onions.