Chop the cabbage and tofu into small pieces.
Finely dice the onion.
Heat cooking oil in a pan and sauté the onion.
Add the cabbage and stir-fry together.
Add the tofu and crumble it while stir-frying.
Add the rice and mix everything evenly.
Season with ketchup.
Once all the ingredients are well mixed, the dish is ready.