A hooded man armed with a knife terrified two women after forcing his way into their home, Lincoln Crown Court was told on Monday.
Jordan Sutherland, who was accompanied by a second hooded man, broke into the property in Cross Street, Lincoln while the occupants were asleep.
Phil Howes, prosecuting, said Adriana Cranga was woken by screaming outside her home.
She went to investigate with her housemate Irina Carstea and found an internal door open with a laptop and cigarettes missing.
Mr Howes said: “They then became aware of a male in the doorway. He started to walk into the room.
“He had a hood over his head. They thought he was on drugs. He was holding a knife in his right hand.
“The women were scared. They threw a plastic ashtray at the intruder. He stepped back which gave them the opportunity to close the door.
“The male tried to force his way back in and started to kick the door. The intruders were told the police had been called and they ran off down Ripon Street.”
Mr Howes said that both women were badly affected and have since moved as a result of what happened.
Less than an hour later Sutherland randomly attacked a 26-year-old man who was walking to work on High Street.
He punched the man twice in the face leaving him bleeding. The victim was badly cut and had stitches inserted at hospital.
Sutherland was involved in a third incident the same morning when he went into a shop and was aggressive towards the owner and a customer.
Sutherland, 21, of Princess Street, Lincoln, admitted charges of aggravated burglary, criminal damage, assault and threatening behaviour as a result of the incidents on April 4. He was jailed for six years and eight months.
The second man involved has not been traced.
Judge Simon Hirst, passing sentence, told him: “It must have been terrifying for the occupants of that house. This has had a significant impact on them.”
Mark Watson, in mitigation, said Sutherland is ashamed of his behaviour and plans to use his time in custody to turn his life around.
“This is an offence that the defendant has little recollection of. That is because of the state he was in.”