Cut the beef, onion, carrot, and green onion into bite-sized pieces.
Heat oil in a pan and stir-fry the beef.
When the beef is about halfway cooked, add onions and carrots and stir-fry together.
Add rice and stir-fry until well mixed with the other ingredients.
Season with soy sauce, salt, and pepper, then add green onion at the end and finish stir-frying.