The top U.S. military commander in Iraq has told troops they must refrain from torturing or mistreating Iraqis .