Everything worked with the type command, i had try to install system update (4.4.2, rooted, twrp installed) and it stucked at twrp loop..
go to advanced>terminal command>press select>type the command from the first page hit reboot>system and you get everything back and still asking you to update...