Slice the onion and green onion thinly.
Cut the beef into bite-sized pieces.
Heat oil in a pan and stir-fry the beef.
When the beef is halfway cooked, add the onion and green onion and stir-fry together.
Season with soy sauce, sugar, cooking wine, and pepper.
Once everything is cooked, serve it over rice to finish.